Remove `FORCE` from the CMake `set()` in case users want to specify
another target, such as 10.15.
Allows users to resolve potential linker warnings by setting
CMAKE_OSX_DEPLOYMENT_TARGET on the CMake command line.
# Providing a default value >=10.14 helps to find modern C++ compatibility,
# such as by defaulting to the Clang libc++ instead of libstdc++.
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.14 CACHE STRING
- "OS X deployment target affects default SDK version and compiler flags."
- FORCE)
+ "OS X deployment target affects default SDK version and compiler flags.")
# By default, limit the binary architecture to a single 64-bit build.
set(CMAKE_OSX_ARCHITECTURES x86_64 CACHE STRING
"OS X architecture affects the compatibility of the (potentially fat) binaries produced."
# Reference https://scikit-build.readthedocs.io/en/latest/generators.html#macosx
# and https://github.com/MacPython/wiki/wiki/Spinning-wheels
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.14 CACHE STRING
- "OS X deployment target below 10.14 does not use modern standard library"
- FORCE)
+ "OS X deployment target below 10.14 does not use modern standard library")
set(CMAKE_OSX_ARCHITECTURES x86_64 CACHE STRING
"OS X should build Python package for 64-bit architecture"
FORCE)