Re: [CMake] How to set Environmental Variable in Makefile?

2009-01-22 Thread Wang, Huyi (GE Healthcare)
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

[CMake] How to set Environment Variable in Makefile?

2009-01-15 Thread Wang, Huyi (GE Healthcare)
Question: Is there a way to set value for an environment 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 environment varialbes. Right now I'm trying to run omniidl to build corba idl

[CMake] Escape characters in ARGS of ADD_CUSTOM_COMMAND

2008-12-18 Thread Wang, Huyi (GE Healthcare)
I want to use sed to modify and create a file like: sed -e 's/\(^#include[ \t]*\)(.*[ \t]*$\)/\1autogen_include\/\2/g' original_file new_file Seems ADD_CUSTOM_COMMAND can't accept this kind of regularexp as the ARGS. Thanks and regards, Huyi Wang