The Mac OS X SDK is not passed to sub projects during the super build.
Referring to the mail of Matt Clarkson:
Hi there,
please can I request the following addition to SuperBuild.cmake, so that these values get passed to all sub-projects. It enabled me to build MITK (2013.09....ish) using the 10.8 SDK on Mavericks.
Thanks
Matt
if(APPLE)
set(ep_common_args -DCMAKE_OSX_ARCHITECTURES:PATH=${CMAKE_OSX_ARCHITECTURES} -DCMAKE_OSX_DEPLOYMENT_TARGET:PATH=${CMAKE_OSX_DEPLOYMENT_TARGET} -DCMAKE_OSX_SYSROOT:PATH=${CMAKE_OSX_SYSROOT} ${ep_common_args} )
endif()
And Miklos Espak:
The Boost build command has to be adjusted as well.
macosx-version=${CMAKE_OSX_DEPLOYMENT_TARGET}
macosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}
And this would probably go to the configure command:
--sysroot ${CMAKE_OSX_SYSROOT}
This needs testing, though.
Miklos