Try "PROJECT_NAME" ...<br><br>Where did you see it as "CMAKE_PROJECT_NAME"?<br><br><br><div><span class="gmail_quote">On 10/18/07, <b class="gmail_sendername">Josef Karthauser</b> <<a href="mailto:joe.karthauser@geomerics.com">
joe.karthauser@geomerics.com</a>> 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't the value of CMAKE_PROJECT_NAME supposed to contain the name given
<br>to the last PROJECT() call? It appears with the current version of<br>CMAKE that it gets the value of the first call to PROJECT, and isn't<br>subsequently updated.<br><br>For example:<br><br> CMakeLists.txt:<br>
Project(foo)<br> MESSAGE(${CMAKE_PROJECT_NAME})<br><br> Project(bar)<br> MESSAGE(${CMAKE_PROJECT_NAME})<br><br>Outputs:<br><br> foo<br> 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>