Re: [CMake] How to substitute zero in a variable

2008-09-24 Thread Timenkov Yuri
On Thu, Sep 25, 2008 at 12:12 AM, Eric (Brad) Lemings <[EMAIL PROTECTED]>wrote: > > Consider the following: > > CMakeLists.txt: >set (ZERO 0) >configure_file ( >${CMAKE_SOURCE_DIR}/include/config.h.cmake >${CMAKE_BINARY_DIR}/include/config.h >) > > ${CMAKE_SOURC

[CMake] How to substitute zero in a variable

2008-09-24 Thread Eric (Brad) Lemings
Consider the following: CMakeLists.txt: set (ZERO 0) configure_file ( ${CMAKE_SOURCE_DIR}/include/config.h.cmake ${CMAKE_BINARY_DIR}/include/config.h ) ${CMAKE_SOURCE_DIR}/include/config.h.cmake: #cmakedefine ZERO @ZERO@ When I run cmake, I get the follow