cmake-conan icon indicating copy to clipboard operation
cmake-conan copied to clipboard

Fix: remove the CMAKE_OSX_DEPLOYMENT_TARGET auto detect by CMake

Open ErniGH opened this issue 11 months ago • 1 comments

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().

https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_DEPLOYMENT_TARGET.html

Close: #627

ErniGH avatar Mar 13 '24 17:03 ErniGH

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 13 '24 17:03 CLAassistant