mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Cmake: correctly identify an Android build
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4491711e09
commit
4e174df58f
1 changed files with 6 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue