[CMake] [CMAKE] PROJECT command and CMAKE_SYSTEM_NAME

Martin Guillon MGuillon at movea.com
Wed Feb 10 10:54:47 EST 2010


Hi,

We just found out something really weird about the command PROJECT.

Let s say we have a very simple CMakeLists.txt Like that

cmake_minimum_required(VERSION 2.6)
MESSAGE (STATUS "The system is \"${CMAKE_SYSTEM_NAME}\"")

Now as is the CMakelists works fine.

The problem appears when we add a PROJECT(TOTO)
If I do so wherever I put it I get
-- The system is ""

This happens in 2.6 and 2.8. We really need help on this .

Thanks a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100210/738fa92c/attachment.htm>


More information about the CMake mailing list