diff options
author | Brad King <brad.king@kitware.com> | 2007-06-28 20:11:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-06-28 20:11:18 (GMT) |
commit | fdf7b203af156f08bf149b35d0b54573d4b25abf (patch) | |
tree | d73c95726631536288f9efd46a704f2d5b11b3c8 /Source/cmInstallExportGenerator.cxx | |
parent | 33e9becd6f1a8343d347611c2037bd980ea41690 (diff) | |
download | CMake-fdf7b203af156f08bf149b35d0b54573d4b25abf.zip CMake-fdf7b203af156f08bf149b35d0b54573d4b25abf.tar.gz CMake-fdf7b203af156f08bf149b35d0b54573d4b25abf.tar.bz2 |
ENH: First step of install script generator cleanup. Each configuration to be installed is now separately handled instead of using variables to store per-configuration names. For targets the component and configuration install-time tests are now done in the install script instead of in the FILE(INSTALL) command. This cleans things up like not trying to strip a file that was optionally not installed. It also simplifies the code for install_name adjustment on OSX. This commit is surrounded by the tags CMake-InstallGeneratorCleanup1-pre and CMake-InstallGeneratorCleanup1-post.
Diffstat (limited to 'Source/cmInstallExportGenerator.cxx')
-rw-r--r-- | Source/cmInstallExportGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmInstallExportGenerator.cxx b/Source/cmInstallExportGenerator.cxx index 5ca2e01..50d1e3b 100644 --- a/Source/cmInstallExportGenerator.cxx +++ b/Source/cmInstallExportGenerator.cxx @@ -222,8 +222,10 @@ void cmInstallExportGenerator::GenerateScript(std::ostream& os) } // install rule for the file created above + std::vector<std::string> exportFile; + exportFile.push_back(this->ExportFilename); this->AddInstallRule(os, this->Destination.c_str(), cmTarget::INSTALL_FILES, - this->ExportFilename.c_str(), false, 0, + exportFile, false, 0, this->FilePermissions.c_str(), 0, this->Configurations, 0, this->Filename.c_str(), 0); |