cmake - CMAKE_SYSTEM_NAME blank? -


I am trying to compile Linux (with the generator Eclipse CDT4 - Ninja ), But when I check for $ {CMAKE_SYSTEM_NAME} for CMakeLists.txt , whatever I get is empty.

In which scenario is this variable valid?

Use cmake 3.02 from the demo test.

You must keep after command:

  Message ("CMAKE_SYSTEM_NAME : $ {CMAKE_SYSTEM_NAME} ") project (Foo) message (" CMAKE_SYSTEM_NAME: $ {CMAKE_SYSTEM_NAME} ")  

Result:

  CMAKE_SYSTEM_NAME: - C compiler The identity is GNU 4.9.1 ... - The CEF compiler ABI information has been detected - CMAKE_SYSTEM_NAME: Linux  

Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -