Try &quot;PROJECT_NAME&quot; ...<br><br>Where did you see it as &quot;CMAKE_PROJECT_NAME&quot;?<br><br><br><div><span class="gmail_quote">On 10/18/07, <b class="gmail_sendername">Josef Karthauser</b> &lt;<a href="mailto:joe.karthauser@geomerics.com">
joe.karthauser@geomerics.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Isn&#39;t the value of CMAKE_PROJECT_NAME supposed to contain the name given
<br>to the last PROJECT() call?&nbsp;&nbsp;It appears with the current version of<br>CMAKE that it gets the value of the first call to PROJECT, and isn&#39;t<br>subsequently updated.<br><br>For example:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;CMakeLists.txt:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Project(foo)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MESSAGE(${CMAKE_PROJECT_NAME})<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Project(bar)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MESSAGE(${CMAKE_PROJECT_NAME})<br><br>Outputs:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;foo<br>&nbsp;&nbsp;&nbsp;&nbsp;foo<br><br>when run.<br><br>Joe<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">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>