I want to #define LINUX in my script using CMake. Below is just a workaround.
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions( -D__LINUX__ )
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
I wonder what is the proper way to do.
I want to #define LINUX in my script using CMake. Below is just a workaround.
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions( -D__LINUX__ )
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
I wonder what is the proper way to do.