[CMake] Setting global make variable from CMake,

Łukasz Tasz lukasz at tasz.eu
Mon Feb 21 07:36:31 EST 2011


Hi All,

Could somebody help me how to provide own predefined make varibable from
cmake configuration?
Such a variable should be avaliable in the context of all generated
makefiles.

I would like to receive output in a way:
in master Makefile:

export MY_OWN_DEBUG_VAR="3"

MY_OWN_DEBUG_VAR should be predefined inside cmake, of passed to cmake via
-DMY_OWN_DEBUG_VAR="3"

passing throu make macro is not a sollution.


Thanks a lot for help
Lukasz

-- 
Lukasz Tasz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110221/3f6651f5/attachment-0001.htm>


More information about the CMake mailing list