conan-io / cmake-conan

CMake wrapper for conan C and C++ package manager
MIT License
814 stars 247 forks source link

Fix: remove the CMAKE_OSX_DEPLOYMENT_TARGET auto detect by CMake #628

Open ErniGH opened 4 months ago

ErniGH commented 4 months ago

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

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.