summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackDragNDropGenerator.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2013-11-01 11:31:07 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2013-11-01 11:31:07 (GMT)
commit53d6ebb36079bd30c9033e4374fd8d31a2928b6a (patch)
tree28b265934aa53539128e88ebfb42469f8bfe79f4 /Source/CPack/cmCPackDragNDropGenerator.cxx
parent193029c4aaad7a13f0b6efed59a1c88af0dc6714 (diff)
downloadCMake-53d6ebb36079bd30c9033e4374fd8d31a2928b6a.zip
CMake-53d6ebb36079bd30c9033e4374fd8d31a2928b6a.tar.gz
CMake-53d6ebb36079bd30c9033e4374fd8d31a2928b6a.tar.bz2
cpack: For DragNDrop generator, add sysroot option when calling Rez.
Diffstat (limited to 'Source/CPack/cmCPackDragNDropGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackDragNDropGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx
index ab386d3..dfb2f15 100644
--- a/Source/CPack/cmCPackDragNDropGenerator.cxx
+++ b/Source/CPack/cmCPackDragNDropGenerator.cxx
@@ -505,7 +505,7 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir,
cmOStringStream embed_sla_command;
embed_sla_command << this->GetOption("CPACK_COMMAND_REZ");
const char* sysroot = this->GetOption("CPACK_OSX_SYSROOT");
- if(sysroot)
+ if(sysroot && sysroot[0] != '\0')
{
embed_sla_command << " -isysroot \"" << sysroot << "\"";
}