Try "PROJECT_NAME" ...
Where did you see it as "CMAKE_PROJECT_NAME"?
On 10/18/07, Josef Karthauser <[EMAIL PROTECTED]> wrote:
>
> Isn't the value of CMAKE_PROJECT_NAME supposed to contain the name given
> to the last PROJECT() call? It appears with the current version of
> CMAKE that it gets the value of the first call to PROJECT, and isn't
> subsequently updated.
>
> For example:
>
> CMakeLists.txt:
> Project(foo)
> MESSAGE(${CMAKE_PROJECT_NAME})
>
> Project(bar)
> MESSAGE(${CMAKE_PROJECT_NAME})
>
> Outputs:
>
> foo
> foo
>
> when run.
>
> Joe
> _______________________________________________
> CMake mailing list
> [email protected]
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake