diff options
Diffstat (limited to 'Source/cmInstallProgramsCommand.cxx')
-rw-r--r-- | Source/cmInstallProgramsCommand.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmInstallProgramsCommand.cxx b/Source/cmInstallProgramsCommand.cxx index 8a29665..013728a 100644 --- a/Source/cmInstallProgramsCommand.cxx +++ b/Source/cmInstallProgramsCommand.cxx @@ -80,9 +80,8 @@ void cmInstallProgramsCommand::FinalPass() } // Construct the destination. This command always installs under - // the prefix. - std::string destination = "${CMAKE_INSTALL_PREFIX}"; - destination += this->Destination; + // the prefix. We skip the leading slash given by the user. + std::string destination = this->Destination.substr(1); cmSystemTools::ConvertToUnixSlashes(destination); // Use a file install generator. |