[CMake] CMAKE_FIND_ROOT_PATH don't work as expected.

Alexander Neundorf a.neundorf-work at gmx.net
Wed Apr 14 16:12:32 EDT 2010


On Wednesday 14 April 2010, Diego wrote:
> 2010/4/13 Alexander Neundorf <a.neundorf-work at gmx.net>
...
> > Can you append the following code to Generic.cmake and see if it works
> > then ?
> >
> > SET(CMAKE_SYSTEM_INCLUDE_PATH /include "${CMAKE_INSTALL_PREFIX}/include")
> > SET(CMAKE_SYSTEM_LIBRARY_PATH /lib "${CMAKE_INSTALL_PREFIX}/lib")
> > SET(CMAKE_SYSTEM_PROGRAM_PATH /bin "${CMAKE_INSTALL_PREFIX}/bin")
> >
> >
> > Alex
>
> Yes, it works now!
> The CMAKE_FIND_ROOT_PATH variable it seems isn't really necessary (??).
>
> Thank you very much by the info about the Modules/Platform/ directory :)
> and by your help.

This is now also in CMake git master, so it should be in the next release.

Alex


More information about the CMake mailing list