MantisBT - CMake
View Issue Details
0014536CMakeCPackpublic2013-10-31 19:112014-06-02 08:37
Clinton Stimpson 
Clinton Stimpson 
normalminoralways
closedfixed 
Mac OS X
 
 
0014536: DragNDrop generator gives Rez error if using alternate Xcode and SDK.

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.

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.
No tags attached.
Issue History
2013-10-31 19:11Clinton StimpsonNew Issue
2013-10-31 22:26Clinton StimpsonAssigned To => Clinton Stimpson
2013-10-31 22:26Clinton StimpsonStatusnew => assigned
2013-10-31 22:27Clinton StimpsonNote Added: 0034300
2013-10-31 22:27Clinton StimpsonStatusassigned => resolved
2013-10-31 22:27Clinton StimpsonResolutionopen => fixed
2014-06-02 08:37Robert MaynardNote Added: 0035972
2014-06-02 08:37Robert MaynardStatusresolved => closed

Notes
(0034300)
Clinton Stimpson   
2013-10-31 22:27   
193029c cpack: For DragNDrop generator, add sysroot option when calling Rez.
(0035972)
Robert Maynard   
2014-06-02 08:37   
Closing resolved issues that have not been updated in more than 4 months.