[CMake] setting CMAKE_MODULE_PATH removes the default path?

Pierre pierre.php at gmail.com
Thu Jan 11 10:47:20 EST 2007


Hello,

Doing:

SET(CMAKE_MODULE_PATH "${FOO_CMAKE_DIR}")

removes the default module path (${CMAKE_ROOT}/Modules here on ubuntu
with 2.4.3). It is not possible anymore to call system macros like
"check_include_file".  Is it the expected behavior?

I thought setting CMAKE_MODULE_PATH adds a path but do not replace the
default one. Is there a way to get back the system path and add it
again (as a workaround)?

Regards,
--Pierre


More information about the CMake mailing list