[CMake] find_package on windows also considering unix paths?
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Feb 9 16:03:18 EST 2009
On Saturday 07 February 2009, Andreas Pakulat wrote:
> Hi,
>
> it seems that find_package in config-mode also searches unix-like paths in
> CMAKE_PREFIX_PATH. So if I put myprojectConfig.cmake into
> <prefix>/lib/cmake/ its still found, even if installing on windows.
>
> Is this intentional? If so, it should be documented, currently the
> documentation seems to be indicating that only <prefix>/[Cc]make is
> searched on win32 and lib+share are only searched on *nix.
The documentation actually says that:
"This is merely a convention, so all (W) and (U) directories are still
searched on all platforms."
Maybe the phrasing could be changed a bit, so that this is a bit closer to the
list of directories and harder to overlook.
Alex
More information about the CMake
mailing list