Re: [CMake] Computation of CMAKE_OSX_SYSROOT

2018-10-01 Thread Robert Maynard
Documentation changes can be done through the CMake project hosted on gitlab. You would want to modify the file: https://gitlab.kitware.com/cmake/cmake/blob/master/Help/variable/CMAKE_OSX_DEPLOYMENT_TARGET.rst On Mon, Oct 1, 2018 at 11:13 AM James Turner via CMake wrote: > > > On 1 Oct 2018, a

Re: [CMake] Computation of CMAKE_OSX_SYSROOT

2018-10-01 Thread James Turner via CMake
> On 1 Oct 2018, at 14:25, Craig Scott 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 vari

Re: [CMake] Computation of CMAKE_OSX_SYSROOT

2018-10-01 Thread Craig Scott
On Mon, Oct 1, 2018 at 10:53 PM James Turner via CMake wrote: > Hi, > > The docs here: > > https://cmake.org/cmake/help/v3.12/variable/CMAKE_OSX_SYSROOT.html > > state that CMAKE_OSX_SYSROOT is computed from CMAKE_OSX_DEPLOYMENT_TARGET > if not explicitly set. Can anyone comment on how th

[CMake] Computation of CMAKE_OSX_SYSROOT

2018-10-01 Thread James Turner via CMake
Hi, The docs here: https://cmake.org/cmake/help/v3.12/variable/CMAKE_OSX_SYSROOT.html state that CMAKE_OSX_SYSROOT is computed from CMAKE_OSX_DEPLOYMENT_TARGET if not explicitly set. Can anyone comment on how this works, because in my setup it seems to be failing. This showed up as -is