Skip to content

Commit

Permalink
Merge pull request #145 from leetal/142_fix_invalid_condition
Browse files Browse the repository at this point in the history
Fixes #142
  • Loading branch information
leetal authored May 20, 2022
2 parents 58e2b17 + 3a38c6f commit c06b5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-install_name")

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

0 comments on commit c06b5ae

Please sign in to comment.