Dear all,
I don’t know if this is the right mailing list (or maybe cmake users was 
better?) to post before opening an issue in the CMake bug tracker.

We have an issue with CMake in OS X ([1]) in one of our project.
The issue arose for a coincidence because Xcode 7 ships with the 10.11 SDK and 
not with the 10.10 SDK, while our systems are still in 10.10.
Making the long story short I needed to set the variable 
`CMAKE_OSX_DEPLOYMENT_TARGET` to 10.10 and this was done after the first 
“project” call.
This works if the generator is Xcode, but not if it is Unix Makefiles.
I restricted the issue to lie in the following if in DarwinInitialize.cmake 
(lines 48-51)

elseif("${CMAKE_GENERATOR}" MATCHES Xcode
       OR CMAKE_OSX_DEPLOYMENT_TARGET
       OR CMAKE_OSX_ARCHITECTURES MATCHES "[^;]"
       OR NOT EXISTS "/usr/include/sys/types.h")

Now, the question is: why the Unix Makefile should  not  need the variable 
“CMAKE_OSX_SYSROOT” but only if the deployment target is not set?
Shouldn’t be correct to set anyway the sysroot (which by the way can be easily 
found because Xcode is present on the machine)?
Btw: we also build .app with makefiles. Shouldn’t this need the sysroot?

Thanks for the clarification.
Francesco


[1] https://github.com/robotology/yarp/issues/592
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to