[CMake] Setting variables in included cmake module files

Arindam Mukherjee arindam.mukerjee at gmail.com
Mon Aug 11 06:56:28 EDT 2014


I have a listfile CMakeLists.txt which includes two cmake modules -
vardefs.cmake and unix.cmake, both of which are included by the list
file from some path set using CMAKE_MODULE_PATH.

I set some variables in vardefs.cmake which I am trying to use in the
list file and in unix.cmake. Looks like it is not available in
unix.cmake. Is there a way to fix this?

Thanks,
Arindam


More information about the CMake mailing list