Skip to content

Commit 2d57283

Browse files
authored
fix: use version range and don't error of no macOS version is set (#599)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 658a0da commit 2d57283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.15)
1+
cmake_minimum_required(VERSION 3.15...4.0)
22

33
#
44
# For more details, see docs/building.rst
@@ -70,7 +70,7 @@ if(CMakePythonDistributions_SUPERBUILD)
7070
set(binary_archive "linux64_binary")
7171
endif()
7272
if(APPLE)
73-
if("${CMAKE_OSX_DEPLOYMENT_TARGET}" VERSION_LESS "10.10")
73+
if(CMAKE_OSX_DEPLOYMENT_TARGET AND "${CMAKE_OSX_DEPLOYMENT_TARGET}" VERSION_LESS "10.10")
7474
message(FATAL_ERROR "Unsupported macOS deployment target: ${CMAKE_OSX_DEPLOYMENT_TARGET} is less than 10.10")
7575
else()
7676
set(binary_archive "macos10_10_binary")

0 commit comments

Comments
 (0)