[cmake-developers] New policy for disabling automatic extension appending on file search?

Ben Boeckel ben.boeckel at kitware.com
Wed Nov 18 14:32:43 EST 2015


On Wed, Nov 18, 2015 at 13:22:07 -0600, Ryan Houdek wrote:
> I was wondering if adding a new policy that disables the undocumented
> feature of cmake where it appends extensions to filenames when searching
> for files would be something that would actually be accepted to be merged
> if someone spent the time to work on it.

I had work towards this end a while ago, but never finished it. You can
tell how old it is since it was supposed to be CMP0054 :) .

    https://github.com/mathstuf/CMake/commit/8fc490d6031546a51779ec7e3d07ea18978f1902

The extension testing is a performance bottleneck, so in addition to
being cleaner, it will likely speed up CMake as well.

--Ben


More information about the cmake-developers mailing list