summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-04-04 20:02:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-04-04 20:02:50 (GMT)
commit45ce11a0757a1006a235f34637892115ffeae66e (patch)
treebe7370a18622502f98d774b00cd5606f3fa2ff72 /Source/cmFileCommand.cxx
parentd1c660d49550af6f174cbfac4ce81bd7d7ce7a75 (diff)
downloadCMake-45ce11a0757a1006a235f34637892115ffeae66e.zip
CMake-45ce11a0757a1006a235f34637892115ffeae66e.tar.gz
CMake-45ce11a0757a1006a235f34637892115ffeae66e.tar.bz2
ENH: install the mac application bundle into /Applications directly with no enclosing folder
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index aa9731b..4aa04e3 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -1244,7 +1244,8 @@ void cmFileCommand
bool cmFileCommand::HandleInstallDestination(cmFileInstaller& installer,
std::string& destination)
{
- if ( destination.size() < 2 )
+ // allow for / to be a valid destination
+ if ( destination.size() < 2 && destination != "/" )
{
this->SetError("called with inapropriate arguments. "
"No DESTINATION provided or .");