Skip to content

Commit 170a9bd

Browse files
committed
Fine-tune recent CMake 4 tweak.
1 parent 4818cf6 commit 170a9bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cmake_minimum_required(VERSION 3.15.0)
44

5-
if (APPLE AND CMAKE_VERSION VERSION_GREATER_EQUAL 4.0.0)
5+
if (APPLE AND CMAKE_VERSION VERSION_GREATER_EQUAL 4.0.0 AND NOT CMAKE_OSX_SYSROOT)
66
# We are going to need having CMAKE_OSX_SYSROOT point to the macOS SDK
77
# path. However, starting with CMake 4.0, CMAKE_OSX_SYSROOT is not set
88
# automatically anymore. So we follow the guidance from the CMake 4.0

0 commit comments

Comments
 (0)