Skip to content

Commit 52e4d1a

Browse files
author
Alexander Widerberg
committed
Make Darwin default fallback system name on older versions of CMake.
1 parent 227100f commit 52e4d1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ios.toolchain.cmake

+4-1
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,12 @@ if(MODERN_CMAKE)
452452
set(CMAKE_IOS_INSTALL_COMBINED YES CACHE INTERNAL "" ${FORCE_CACHE})
453453
message(STATUS "Will combine built (static) artifacts into FAT lib...")
454454
endif()
455-
else()
455+
elseif(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.10")
456456
# Legacy code path prior to CMake 3.14 or fallback if no SDK_NAME specified
457457
set(CMAKE_SYSTEM_NAME iOS CACHE INTERNAL "" ${FORCE_CACHE})
458+
else()
459+
# Legacy code path prior to CMake 3.14 or fallback if no SDK_NAME specified
460+
set(CMAKE_SYSTEM_NAME Darwin CACHE INTERNAL "" ${FORCE_CACHE})
458461
endif()
459462
# Standard settings.
460463
set(CMAKE_SYSTEM_VERSION ${SDK_VERSION} CACHE INTERNAL "")

0 commit comments

Comments
 (0)