fix compile for android

This commit is contained in:
tqcq
2024-12-19 14:52:43 +08:00
parent 7d7845acb5
commit 6a719f0cb1
2 changed files with 10 additions and 30 deletions

View File

@@ -32,8 +32,10 @@ option(TILE_BUILD_SHARED "Build shared library" ON)
option(TILE_WITH_MIMALLOC "Build with mimalloc" OFF)
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(TILE_BUILD_TESTS ON)
set(TILE_BUILD_BENCHMARKS ON)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Android")
set(TILE_BUILD_TESTS ON)
set(TILE_BUILD_BENCHMARKS ON)
endif()
endif()
if(NOT CMAKE_BUILD_TYPE)