If we don't initialize the variable CMAKE_OSX_DEPLOYMENT_TARGET, it tries to retrieve it from an environment variable, and if not, it calculates it based on the host platform. To prevent this, we check that it is initialized before the call to project().
If we don't initialize the variable
CMAKE_OSX_DEPLOYMENT_TARGET
, it tries to retrieve it from an environment variable, and if not, it calculates it based on the host platform. To prevent this, we check that it is initialized before the call toproject()
.https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_DEPLOYMENT_TARGET.html
Close: #627