<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Sep 25, 2008 at 12:12 AM, Eric (Brad) Lemings <span dir="ltr">&lt;<a href="mailto:brad@rebit.com">brad@rebit.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Consider the following:<br>
<br>
CMakeLists.txt:<br>
 &nbsp; &nbsp;set (ZERO 0)<br>
 &nbsp; &nbsp;configure_file (<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;${CMAKE_SOURCE_DIR}/include/config.h.cmake<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;${CMAKE_BINARY_DIR}/include/config.h<br>
 &nbsp; &nbsp;)<br>
<br>
${CMAKE_SOURCE_DIR}/include/config.h.cmake:<br>
 &nbsp; &nbsp;#cmakedefine ZERO @ZERO@<br>
<br>
When I run cmake, I get the following header file:<br>
<br>
${CMAKE_BINARY_DIR}/include/config.h:<br>
 &nbsp; &nbsp;#define ZERO<br>
<br>
How do I coax CMake to get the literal integer constant &#39;0&#39; replaced for<br>
@ZERO@?</blockquote><div>I suppose this is because #cmakedefine behavior (If I understand correctly configure_file&#39;s documentation). Try simple #define ZERO @ZERO@<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Thanks.<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>