[CMake] setting CMAKE_MODULE_PATH removes the default path?

Axel Roebel Axel.Roebel at ircam.fr
Thu Jan 11 12:24:27 EST 2007


On Thursday 11 January 2007 16:47, Pierre wrote:
> Hello,
>
> Doing:
>
> SET(CMAKE_MODULE_PATH "${FOO_CMAKE_DIR}")

Effectively this is correct, it worked for me like this 
on all cmake versions I ever tried. The default path 
should be searched for automagically.

You find the implementation in 
cmake-source-dir/Source/cmMakefile.cxx 
function GetModulesFiles.

The default location is
${CMAKE_ROOT}/Modules.
You may want to check whether 
your CMAKE_ROOT variable
is correct...

> 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
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

-- 
Axel Roebel    
IRCAM Analysis/Synthesis Team
Phone: ++33-1-4478 4845 | Fax: ++33-1-4478 1540


More information about the CMake mailing list