Skip to content

Commit fa45b4f

Browse files
committed
cmake: iOS detection using CMAKE_SYSTEM_NAME
1 parent d8066c8 commit fa45b4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.21)
22
set(CMAKE_CXX_STANDARD 23)
33
set(CMAKE_CXX_STANDARD_REQUIRED ON)
4-
if ("${GEODE_TARGET_PLATFORM}" STREQUAL "iOS" OR IOS)
4+
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR IOS)
55
set(CMAKE_OSX_ARCHITECTURES "arm64")
66
else()
77
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")

0 commit comments

Comments
 (0)