[CMake] Setting global make variable from CMake,
Eric Noulard
eric.noulard at gmail.com
Mon Feb 21 10:45:40 EST 2011
2011/2/21 Michael Wild <themiwi at gmail.com>:
>>> Do you know such a call can be configured?
>>> for example:
>>> export MYVARIABVLE=test; cd dir; compiler_call
>>
>> I don't think there is an easy way to do that from within CMake.
>> You would need some way to set env var "before" launching the compile rule
>> the only way I see would be to craft a compile script for each case.
>>
>>
>
> You could experiment with the RULE_LAUNCH_COMPILE and RULE_LAUNCH_LINK
> properties... However, that would only work for Makefile-based generators.
I didn't even know those properties existed :-]
Thank you Michael.
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list