James C. Sutherland wrote:

#define TEST_VAR_VALUE ${TEST_VAR_VALUE}

is what you want.


But if I do
  set( TEST_VAR_VALUE 0 )
then this results in TEST_VAR_VALUE being undefined rather than having the value of 0 as I want. If the value is anything other than zero it works. This is what I tried to explain in my original (probably unclear) post...

No it won't. That is a #define not a #cmakedfine. It will always be there.

-Bill

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to