diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-05 07:57:47 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-05 07:57:47 -0800 |
commit | 4e174df58fd6447bc99826aba9adaa5b4284101d (patch) | |
tree | 87ed71dae49866f4cf45b2535343ff0d6aad8dee | |
parent | 4491711e097a3f4fd9813f3affd0aa5dbb6e0982 (diff) | |
download | subsurface-4e174df58fd6447bc99826aba9adaa5b4284101d.tar.gz |
Cmake: correctly identify an Android build
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | subsurface-core/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/subsurface-core/CMakeLists.txt b/subsurface-core/CMakeLists.txt index e56f8bb34..9532ff35a 100644 --- a/subsurface-core/CMakeLists.txt +++ b/subsurface-core/CMakeLists.txt @@ -1,8 +1,11 @@ set(PLATFORM_SRC unknown_platform.c) +message(STATUS "system name ${CMAKE_SYSTEM_NAME}") if(CMAKE_SYSTEM_NAME STREQUAL "Linux") - set(PLATFORM_SRC linux.c) -elseif(ANDROID) - set(PLATFORM_SRC android.cpp) + if(ANDROID) + set(PLATFORM_SRC android.cpp) + else() + set(PLATFORM_SRC linux.c) + endif() elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") set(PLATFORM_SRC macos.c) elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows") |