diff --git a/Source/cmInstallFilesCommand.cxx b/Source/cmInstallFilesCommand.cxx index b1dbf0df9..6f4558334 100644 --- a/Source/cmInstallFilesCommand.cxx +++ b/Source/cmInstallFilesCommand.cxx @@ -63,7 +63,7 @@ void cmInstallFilesCommand::FinalPass() { // replace any variables std::string temps = *s; - testf = cmSystemTools::GetFilenameWithoutExtension(temps) + ext; + testf = cmSystemTools::GetFilenameWithoutLastExtension(temps) + ext; // add to the result targetSourceLists.push_back(testf); }