summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-03-02 16:48:55 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-03-02 16:48:55 (GMT)
commitaf87e8abb04bc70b9b11f33585ad9503a0c78eb1 (patch)
tree076924f23c27272a101756c21516d2dd3ca5e9cd
parent0ee7b8ea03b83189e2857154cd5be03148346f6b (diff)
parent5663e436abe7395f4269ba8269d2a869e0b83fab (diff)
downloadCMake-af87e8abb04bc70b9b11f33585ad9503a0c78eb1.zip
CMake-af87e8abb04bc70b9b11f33585ad9503a0c78eb1.tar.gz
CMake-af87e8abb04bc70b9b11f33585ad9503a0c78eb1.tar.bz2
Merge topic 'dragndrop-sla'
5663e43 DragNDrop: Fix problem with relocated files in Xcode 4.3
-rw-r--r--Source/CPack/cmCPackDragNDropGenerator.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx
index 83b6b64..3b6135e 100644
--- a/Source/CPack/cmCPackDragNDropGenerator.cxx
+++ b/Source/CPack/cmCPackDragNDropGenerator.cxx
@@ -421,6 +421,7 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir,
if(ifs.is_open())
{
cmGeneratedFileStream osf(sla_r.c_str());
+ osf << "#include <CoreServices/CoreServices.r>\n\n";
osf << SLAHeader;
osf << "\n";
osf << "data 'TEXT' (5002, \"English\") {\n";
@@ -481,13 +482,11 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir,
// Rez the SLA
cmOStringStream embed_sla_command;
- embed_sla_command << "/bin/bash -c \""; // need expansion of "*.r"
embed_sla_command << this->GetOption("CPACK_COMMAND_REZ");
- embed_sla_command << " /Developer/Headers/FlatCarbon/*.r ";
- embed_sla_command << "'" << sla_r << "'";
+ embed_sla_command << " \"" << sla_r << "\"";
embed_sla_command << " -a -o ";
- embed_sla_command << "'" << temp_udco << "'\"";
-
+ embed_sla_command << "\"" << temp_udco << "\"";
+
if(!this->RunCommand(embed_sla_command, &error))
{
cmCPackLogger(cmCPackLog::LOG_ERROR,