[CMake] CMAKE_PROJECT_NAME

David Cole david.cole at kitware.com
Thu Oct 18 07:14:15 EDT 2007


Try "PROJECT_NAME" ...

Where did you see it as "CMAKE_PROJECT_NAME"?


On 10/18/07, Josef Karthauser <joe.karthauser at geomerics.com> 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
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071018/e382c3e2/attachment.html


More information about the CMake mailing list