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_SOURCE_DIR}/include/config.h.cmake:
>    #cmakedefine ZERO @ZERO@
>
> When I run cmake, I get the following header file:
>
> ${CMAKE_BINARY_DIR}/include/config.h:
>    #define ZERO
>
> How do I coax CMake to get the literal integer constant '0' replaced for
> @[EMAIL PROTECTED]

I suppose this is because #cmakedefine behavior (If I understand correctly
configure_file's documentation). Try simple #define ZERO @ZERO@

>
>
> Thanks.
>
> _______________________________________________
> CMake mailing list
> [email protected]
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to