[cmake-developers] [CMake 0015816]: When setting CMAKE_OSX_SYSROOT to macosx, CPack fails

Mantis Bug Tracker mantis at public.kitware.com
Wed Oct 28 07:17:10 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15816 
====================================================================== 
Reported By:                Nicolas François
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15816
Category:                   CPack
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-10-28 07:17 EDT
Last Modified:              2015-10-28 07:17 EDT
====================================================================== 
Summary:                    When setting CMAKE_OSX_SYSROOT to macosx, CPack
fails
Description: 
On 10.11.1 and building against deployment target 10.9, the
CMAKE_OSX_DEPLOYMENT_TARGET must be set to 10.9 and so CMAKE_OSX_SYSROOT to
avoid the warning message from CMake.
Setting CMAKE_OSX_SYSROOT to macosx allows to select the latest SDK.
The compilation works and everything is fine.

But CPack fails because of the CPACK_OSX_SYSROOT variable set to
CMAKE_OSX_SYSROOT, hence macosx; instead of being set to _CMAKE_OSX_SYSROOT_PATH
which is the transformed variable in Darwin-Initialize.cmake.

Additional Information: 
Still in 3.4.0-rc2
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-10-28 07:17 Nicolas FrançoisNew Issue                                    
======================================================================



More information about the cmake-developers mailing list