diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-07-15 12:44:58 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-07-15 12:44:58 (GMT) |
commit | b59f5ddb7fcde717adfe23ebafcbe8c641f44687 (patch) | |
tree | 77e90dbee6ff8bcccffe64f0efe2528785f86e80 | |
parent | 8b2a797b572f086ed71c93c389ebebf449ca39df (diff) | |
download | CMake-b59f5ddb7fcde717adfe23ebafcbe8c641f44687.zip CMake-b59f5ddb7fcde717adfe23ebafcbe8c641f44687.tar.gz CMake-b59f5ddb7fcde717adfe23ebafcbe8c641f44687.tar.bz2 |
fix install target
-rw-r--r-- | Source/cmInstallFilesCommand.cxx | 2 | ||||
-rw-r--r-- | Source/cmInstallFilesCommand.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmInstallFilesCommand.cxx b/Source/cmInstallFilesCommand.cxx index 6095dcc..b1dbf0d 100644 --- a/Source/cmInstallFilesCommand.cxx +++ b/Source/cmInstallFilesCommand.cxx @@ -63,7 +63,7 @@ void cmInstallFilesCommand::FinalPass() { // replace any variables std::string temps = *s; - testf = temps + ext; + testf = cmSystemTools::GetFilenameWithoutExtension(temps) + ext; // add to the result targetSourceLists.push_back(testf); } diff --git a/Source/cmInstallFilesCommand.h b/Source/cmInstallFilesCommand.h index d5cd5b2..7297bbc 100644 --- a/Source/cmInstallFilesCommand.h +++ b/Source/cmInstallFilesCommand.h @@ -70,9 +70,9 @@ public: virtual const char* GetFullDocumentation() { return - "INSTALL_FILES(path extension srclist file file srclist ...)\n" + "INSTALL_FILES(path extension file file ...)\n" "INSTALL_FILES(path regexp)\n" - "Create rules to install the listed files into the path. Path is relative to the variable CMAKE_INSTALL_PREFIX. There are two forms for this command. In the first the files can be specified explicitly or by referenceing source lists. All files must either have the extension specified or exist with the extension appended. A typical extension is .h etc... In the second form any files in the current directory that match the regular expression will be installed."; + "Create rules to install the listed files into the path. Path is relative to the variable CMAKE_INSTALL_PREFIX. There are two forms for this command. In the first the files can be specified explicitly. If a file specified already has an extension, that extension will be removed first. This is useful for providing lists of source files such as foo.cxx when you want the corresponding foo.h to be installed. A typical extension is .h etc... In the second form any files in the current directory that match the regular expression will be installed."; } cmTypeMacro(cmInstallFilesCommand, cmCommand); |