[CMake] find_package on windows also considering unix paths?

Andreas Pakulat apaku at gmx.de
Mon Feb 9 17:40:20 EST 2009


On 09.02.09 22:03:18, Alexander Neundorf wrote:
> 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.

Yeah, I looked before and after the list, but didn't want to read through
the full text (though I recall having done that at some point in the past).

Andreas

-- 
Your mode of life will be changed for the better because of good news soon.


More information about the CMake mailing list