[CMake] How to set Environmental Variable in Makefile?

Wang, Huyi (GE Healthcare) Huyi.Wang at ge.com
Thu Jan 22 15:28:37 EST 2009


Hi, any suggestions?

________________________________

Question:
Is there a way to set value for an environmental  variable, e.g. $PATH, and let it be valid in Makefile? ENV{XXX} can only be valid when cmake is runing, not for make.
 
Reason:
Some commands depend on some environmental  varialbes. 
Right now I'm trying to run "omniidl" to build corba idl files, it needs PYTHONPATH to be set correctly, otherwise this command can't run. I checked its switches, there isn't such a switch that can let omniidl know this path.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090123/661cdd75/attachment.htm>


More information about the CMake mailing list