Created
December 29, 2016 00:07
-
-
Save NatWeiss/0cf742a35f729898bbd5e9d178100c2e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#message(STATUS "SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}") | |
#message(STATUS "COMPILER: ${CMAKE_CXX_COMPILER_ID}") | |
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") | |
if(WINRT) | |
set(SYSTEM_STRING "Windows RT") | |
elseif(WP8) | |
set(SYSTEM_STRING "Windows Phone 8") | |
else() | |
set(WINDOWS TRUE) | |
set(SYSTEM_STRING "Windows Desktop") | |
endif() | |
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") | |
if(ANDROID) | |
set(SYSTEM_STRING "Android") | |
else() | |
set(LINUX TRUE) | |
set(SYSTEM_STRING "Linux") | |
endif() | |
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |
if(IOS) | |
set(SYSTEM_STRING "IOS") | |
else() | |
set(MACOSX TRUE) | |
set(APPLE TRUE) | |
set(SYSTEM_STRING "Mac OSX") | |
endif() | |
endif() | |
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | |
set(COMPILER_STRING ${CMAKE_CXX_COMPILER_ID}) | |
set(CLANG TRUE) | |
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | |
if(MINGW) | |
set(COMPILER_STRING "Mingw GCC") | |
else() | |
set(COMPILER_STRING "GCC") | |
endif() | |
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") | |
set(COMPILER_STRING "${CMAKE_CXX_COMPILER_ID} C++") | |
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") | |
set(COMPILER_STRING "Visual Studio C++") | |
endif() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment