[cmake-developers] Relation between CMAKE_PREFIX_PATH and CMAKE_FIND_ROOT_PATH

Eric Noulard eric.noulard at gmail.com
Tue Jan 3 13:40:40 EST 2012


Sorry sent too soon, finger slipped.
...

I have been giving wrong advice about the usage of CMAKE_FIND_ROOT_PATH
which seems to be "reserved" for cross-compiling whereas

CMAKE_PREFIX_PATH
CMAKE_INCLUDE_PATH
CMAKE_PROGRAM_PATH
CMAKE_LIBRARY_PATH
CMAKE_IGNORE_PATH

are meant to be used in the general case.

Could someone enlighten me about the intended usage and
relationship between those vars and their "SYSTEM" counterpart
CMAKE_SYSTEM_*_PATH ?

And may be why do we need CMAKE_FIND_ROOT_PATH for cross-compiling
if CMAKE_PREFIX_PATH already existed?

CMAKE_*_PATH are documented (through --help-variables)
whereas CMAKE_FIND_ROOT_PATH doesn't seem to be currently.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org



More information about the cmake-developers mailing list