summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorOatmealDome <OatmealDome@users.noreply.github.com>2026-07-30 19:54:12 -0400
committerGitHub <noreply@github.com>2026-07-30 19:54:12 -0400
commite463c64b7ad37fbb33c0242052d5f4245815ec6e (patch)
treec3de79e20408d723104f2ea39649efec82f56498 /CMakeLists.txt
parent74c51895c8df8e08a8cd6713de305fe28f36f4f4 (diff)
parentdbbe5c403e222aa2992dedbf8c5233d9c6e85fa7 (diff)
Merge pull request #14779 from phire/cmake_osx_sysroot
Make sure CMAKE_OSX_SYSROOT is set
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 86d4479505..2622a18d7c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,10 @@ cmake_policy(SET CMP0080 OLD) # allow using BundleUtilities at configure time
# This is inserted into the Info.plist as well.
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0.0" CACHE STRING "")
+# When we don't set a sysroot, AppleClang will put /usr/local/include at a higher
+# priority than -isystem paths, which can cause weird include issues in Externals
+set(CMAKE_OSX_SYSROOT macosx CACHE STRING "")
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_CURRENT_SOURCE_DIR}/CMake/FlagsOverride.cmake")
# CMake 3.28 and later scan c++ source files for module imports by default. Since we don't use