[CMake] setting CMAKE_MODULE_PATH removes the default path?

David Cole david.cole at kitware.com
Thu Jan 11 10:51:41 EST 2007


Use:

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${FOO_CMAKE_DIR}")
to append your own path...

SET(CMAKE_MODULE_PATH "${FOO_CMAKE_DIR}" ${CMAKE_MODULE_PATH})
to prepend your own path...


HTH,
David


On 1/11/07, Pierre <pierre.php at gmail.com> wrote:
>
> 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
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070111/793c396d/attachment.htm


More information about the CMake mailing list