[cmake-developers] [CMake 0014536]: DragNDrop generator gives Rez error if using alternate Xcode and SDK.

Mantis Bug Tracker mantis at public.kitware.com
Thu Oct 31 19:11:15 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=14536 
====================================================================== 
Reported By:                Clinton Stimpson
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14536
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-10-31 19:11 EDT
Last Modified:              2013-10-31 19:11 EDT
====================================================================== 
Summary:                    DragNDrop generator gives Rez error if using
alternate Xcode and SDK.
Description: 

If I don't download Xcode through the App Store, but through the website, and
install it in an alternate location, I get problems running the CPack DragNDrop
generator.  e.g. Xcode 4.6.3 on OSX 10.9, and no Xcode 5 installed.

For some reason, to even compile successfully, I have to set CMAKE_OSX_SYSROOT.

Also, Rez cannot find <CoreServices/CoreServices.r>

Rez has an -isysroot option to find it.

So, if CMAKE_OSX_ROOT is defined, it should be passed to Rez as well.



Additional Information: 
Something like this might work.

In cmCPackDragNDropGenerator.cxx

     cmOStringStream embed_sla_command;
     embed_sla_command << this->GetOption("CPACK_COMMAND_REZ");
+    const char* sysroot = this->GetOption("CMAKE_OSX_SYSROOT");
+    if(sysroot)
+      {
+      embed_sla_command << " -isysroot \"" << sysroot << "\"";
+      }


And CMAKE_OSX_SYSROOT needs to be passed down to cpack by setting it in
CPackConfig.cmake.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-10-31 19:11 Clinton StimpsonNew Issue                                    
======================================================================




More information about the cmake-developers mailing list