Skip to content

Commit eb32736

Browse files
committed
fix iso not working
1 parent 13e0fc2 commit eb32736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21)
22
set(CMAKE_CXX_STANDARD 20)
33
set(CMAKE_CXX_STANDARD_REQUIRED ON)
44

5-
if ("${GEODE_TARGET_PLATFORM}" STREQUAL "iOS" OR IOS)
5+
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR IOS)
66
set(CMAKE_OSX_ARCHITECTURES "arm64")
77
add_definitions(-DGLES_SILENCE_DEPRECATION)
88
else()
@@ -95,7 +95,7 @@ endif()
9595

9696
add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode)
9797

98-
if (APPLE) # AND NOT (${GEODE_TARGET_PLATFORM} STREQUAL "iOS" OR IOS)
98+
if (APPLE AND NOT (${CMAKE_SYSTEM_NAME} STREQUAL "iOS" OR IOS)
9999
target_link_libraries(${PROJECT_NAME} paho-mqttpp3-static "-framework OpenGL")
100100
else()
101101
target_link_libraries(${PROJECT_NAME} paho-mqttpp3-static)

0 commit comments

Comments
 (0)