Skip to content

Commit 3a38c6f

Browse files
author
Alexander Widerberg
committed
Fixes #142
1 parent e511cff commit 3a38c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios.toolchain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-install_name")
878878

879879
# Set the find root to the SDK developer roots.
880880
# Note: CMAKE_FIND_ROOT_PATH is only useful when cross-compiling. Thus, do not set on macOS builds.
881-
if(NOT PLATFORM_INT STREQUAL "MAC" AND NOT PLATFORM_INT STREQUAL "MAC_ARM64")
881+
if(NOT PLATFORM_INT MATCHES "^MAC.*$")
882882
list(APPEND CMAKE_FIND_ROOT_PATH "${CMAKE_OSX_SYSROOT_INT}" CACHE INTERNAL "")
883883
set(CMAKE_IGNORE_PATH "/System/Library/Frameworks;/usr/local/lib" CACHE INTERNAL "")
884884
endif()

0 commit comments

Comments
 (0)