summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallProgramsCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-25 15:01:20 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-25 15:01:20 (GMT)
commit92ec498b8c2af31c9baec71885707494f84dfd46 (patch)
treee4ab0dd20c7cecc0e8ff76bf1799ab326f07640d /Source/cmInstallProgramsCommand.cxx
parent9192d1d1538dbf34fa55137130164f74b8282bde (diff)
downloadCMake-92ec498b8c2af31c9baec71885707494f84dfd46.zip
CMake-92ec498b8c2af31c9baec71885707494f84dfd46.tar.gz
CMake-92ec498b8c2af31c9baec71885707494f84dfd46.tar.bz2
BUG: Fixed INSTALL_FILES and INSTALL_PROGRAMS commands to install under the prefix like they did before the recent changes.
Diffstat (limited to 'Source/cmInstallProgramsCommand.cxx')
-rw-r--r--Source/cmInstallProgramsCommand.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmInstallProgramsCommand.cxx b/Source/cmInstallProgramsCommand.cxx
index bd137dd..a26b6ae 100644
--- a/Source/cmInstallProgramsCommand.cxx
+++ b/Source/cmInstallProgramsCommand.cxx
@@ -79,6 +79,12 @@ void cmInstallProgramsCommand::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 = "";
@@ -86,7 +92,7 @@ void cmInstallProgramsCommand::FinalPass()
std::vector<std::string> no_configurations;
this->Makefile->AddInstallGenerator(
new cmInstallFilesGenerator(this->Files,
- this->Destination.c_str(), true,
+ destination.c_str(), true,
no_permissions, no_configurations,
no_component, no_rename));
}