Skip to content

Commit c06b5ae

Browse files
authored
Merge pull request #145 from leetal/142_fix_invalid_condition
Fixes #142
2 parents 58e2b17 + 3a38c6f commit c06b5ae

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
@@ -947,7 +947,7 @@ set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-install_name")
947947

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

0 commit comments

Comments
 (0)