[CMake] Setting global make variable from CMake,
Eric Noulard
eric.noulard at gmail.com
Mon Feb 21 10:08:47 EST 2011
2011/2/21 Łukasz Tasz <lukasz at tasz.eu>:
> 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.
Since the makefiles are generated by CMake WHY do you need
to define a "make" var?
What do you want to do ?
CMake was not designed to let you decide generator specifics things.
>
> 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.
What is your use case?
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list