Skip to content

Commit 31b402c

Browse files
committed
allow manually defining GEODE_IOS_SDK
1 parent c610573 commit 31b402c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

cmake/Platform.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ endif()
66

77
if (GEODE_TARGET_PLATFORM STREQUAL "iOS")
88
# make sure that we get the ios sdk
9-
execute_process(COMMAND xcrun --show-sdk-path --sdk iphoneos
10-
OUTPUT_VARIABLE GEODE_IOS_SDK
11-
OUTPUT_STRIP_TRAILING_WHITESPACE
12-
)
9+
if (NOT DEFINED GEODE_IOS_SDK OR GEODE_IOS_SDK STREQUAL "")
10+
execute_process(COMMAND xcrun --show-sdk-path --sdk iphoneos
11+
OUTPUT_VARIABLE GEODE_IOS_SDK
12+
OUTPUT_STRIP_TRAILING_WHITESPACE
13+
)
14+
endif()
1315

1416
message(STATUS "iOS c++ compiler: ${CMAKE_CXX_COMPILER}")
1517
set(CMAKE_OSX_ARCHITECTURES arm64)

0 commit comments

Comments
 (0)