> On 1 Oct 2018, at 14:25, Craig Scott <craig.sc...@crascit.com> wrote:
> 
> You need to set CMAKE_OSX_DEPLOYMENT_TARGET as a cache variable before 
> calling the project() command. If you set it as a normal (i.e. non-cache) 
> variable, the compiler detection logic triggered by the project() call 
> creates a cache variable if one doesn't exist, which would discard the 
> non-cache variable. It's a bit unfortunate, but that's what happens when you 
> set a cache variable for the first time. The relevant code related to your 
> observations is in Modules/Platform/Darwin-Initialize.cmake.

Thanks, that was indeed the solution.

I’d suggest the docs page for CMAKE_OSX_DEPLOYMENT_TARGET could use some 
wording to point this out, but I don’t know who . how a docs change gets done.

James

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to