Created
April 29, 2014 19:52
-
-
Save pppoe/fc3595158149f646d173 to your computer and use it in GitHub Desktop.
CMake check system OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |
# Mac OS X specific code | |
SET(OperatingSystem "Mac OS X") | |
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | |
SET(OperatingSystem "Linux") | |
ELSE() | |
SET(OperatingSystem "Others") | |
ENDIF() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment