Skip to content

Commit

Permalink
Merge pull request #11933 from fwcd/fix-arm64-osx-target-triplet-check
Browse files Browse the repository at this point in the history
CMakeLists: Match arbitrary `arm64-osx` triplets
  • Loading branch information
JoergAtGithub committed Sep 7, 2023
2 parents 9caedfc + 11d6e3c commit 8d0ded7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ if(APPLE)
message(FATAL_ERROR "'xcode-select -v' failed with '${XCODE_SELECT_RESULT}'. You may need to install Xcode and run 'sudo xcode-select --install'.")
endif()

if(VCPKG_TARGET_TRIPLET STREQUAL "arm64-osx-min1100")
if(VCPKG_TARGET_TRIPLET MATCHES "^arm64-osx")
# Minimum macOS version for arm64 Support
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0 CACHE STRING "Minimum macOS version the build will be able to run on")
set(CMAKE_OSX_ARCHITECTURES arm64 CACHE STRING "The target architecture")
Expand Down

0 comments on commit 8d0ded7

Please sign in to comment.