[CMake] Configuration

Camek, Alexander Alexander.Camek at elektrobit.com
Thu Jul 26 10:43:20 EDT 2007


Hi Alex,

> > In my configure.h.cmake: #cmakedefine SYSTEM_NAME In my 
> > CMakeLists.txt: CHECK(system SYSTEM_NAME)
> > 			    CONFIGURE_FILE(configure.h.cmake 
> configure.h)
> >
> > Is something like this possible?
> 
> 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


----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.



More information about the CMake mailing list