Skip to content

Commit fd26bc8

Browse files
Change way of setting min macOS version
1 parent 993864d commit fd26bc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libtiledbsoma/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ if(APPLE)
126126
set(CMAKE_MACOSX_RPATH ON)
127127

128128
# Set minimum macOS version to enable certain C++20 features
129-
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
129+
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0" CACHE STRING "Minimum OS X deployment version" FORCE)
130130

131131
# Don't allow macOS .frameworks to be used for dependencies.
132132
set(CMAKE_FIND_FRAMEWORK NEVER)
@@ -297,7 +297,7 @@ else()
297297
# Compiler specific additions:
298298
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
299299
# Use -Wno-literal-suffix on Linux for C++ libtiledbsoma target.
300-
list(APPEND TILEDBSOMA_COMPILE_OPTIONS -Wno-literal-suffix)
300+
list(APPEND TILEDBSOMA_COMPILE_OPTIONS -Wno-literal-suffix -mmacosx-version-min=11.0)
301301
endif()
302302

303303
endif()

0 commit comments

Comments
 (0)