[cmake-developers] Suggestion: include deployment target and sysroot path in feature_summary on Mac

René J. V. Bertin rjvbertin at gmail.com
Tue Dec 12 08:25:08 EST 2017


Hi,

A thought:

I know CMAKE_OSX_DEPLOYMENT_TARGET and CMAKE_OSX_SYSROOT are intended mainly to 
be used by users building a project as opposed to by the build system itself, 
but it could still be informative to include these settings in the "verbose" 
feature_summary() print-out.

I.e. something like

if(CMAKE_OSX_DEPLOYMENT_TARGET)
    message(STATUS "OS X Deployment target: ${CMAKE_OSX_DEPLOYMENT_TARGET}")
endif()
if(CMAKE_OSX_SYSROOT)
    message(STATUS "OS X SDK sysroot: ${CMAKE_OSX_SYSROOT}")
endif()

Regards,
R.B.



More information about the cmake-developers mailing list