Camek, Alexander a écrit :
> Hi Alex,
>
>   
>>> In my configure.h.cmake: #cmakedefine SYSTEM_NAME In my 
>>> ...
>> Did you have a look at ${CMAKE_SYSTEM_NAME} ?
>>     
>
> Yes I had, but when I write in the configure.h.cmake "#cmakedefine 
> ${CMAKE_SYSTEM_NAME}" then the result after the configure_file is this:
> /* #undef Windows  */.
> Do I need a specific CHECK command that I get the expected result: #define 
> Windows
>
> Thanks for your help
>
> Greetins
>
> Alexander
>   
Just put
#define SYSTEM_NAME "${CMAKE_SYSTEM_NAME}"
or
#define ${CMAKE_SYSTEM_NAME}

In your configurable file and, I think it will do the job.
But for the second case, you rely on case sensitivity of the content of
CMAKE_SYSTEM_NAME and whether it has invalid characters for C names

Philippe.


_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to