We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4818cf6 commit 170a9bdCopy full SHA for 170a9bd
CMakeLists.txt
@@ -2,7 +2,7 @@
2
3
cmake_minimum_required(VERSION 3.15.0)
4
5
-if (APPLE AND CMAKE_VERSION VERSION_GREATER_EQUAL 4.0.0)
+if (APPLE AND CMAKE_VERSION VERSION_GREATER_EQUAL 4.0.0 AND NOT CMAKE_OSX_SYSROOT)
6
# We are going to need having CMAKE_OSX_SYSROOT point to the macOS SDK
7
# path. However, starting with CMake 4.0, CMAKE_OSX_SYSROOT is not set
8
# automatically anymore. So we follow the guidance from the CMake 4.0
0 commit comments