summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallFilesCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmInstallFilesCommand.cxx')
-rw-r--r--Source/cmInstallFilesCommand.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmInstallFilesCommand.cxx b/Source/cmInstallFilesCommand.cxx
index e608484..50b29dd 100644
--- a/Source/cmInstallFilesCommand.cxx
+++ b/Source/cmInstallFilesCommand.cxx
@@ -112,6 +112,12 @@ void cmInstallFilesCommand::FinalPass()
}
}
+ // Construct the destination. This command always installs under
+ // the prefix.
+ std::string destination = "${CMAKE_INSTALL_PREFIX}";
+ destination += this->Destination;
+ cmSystemTools::ConvertToUnixSlashes(destination);
+
// Use a file install generator.
const char* no_permissions = "";
const char* no_rename = "";
@@ -119,7 +125,7 @@ void cmInstallFilesCommand::FinalPass()
std::vector<std::string> no_configurations;
this->Makefile->AddInstallGenerator(
new cmInstallFilesGenerator(this->Files,
- this->Destination.c_str(), false,
+ destination.c_str(), false,
no_permissions, no_configurations,
no_component, no_rename));
}