diff options
author | Brad King <brad.king@kitware.com> | 2006-02-10 18:54:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-10 18:54:36 (GMT) |
commit | b8a33fb424aa28b710e0ec170814ac380ee057db (patch) | |
tree | 23c06b61601d90d4703271fed4f90d2d3df7fee7 /Source/cmLocalGenerator.cxx | |
parent | d2621064e27e38eba984c994746eaee40bc09ebc (diff) | |
download | CMake-b8a33fb424aa28b710e0ec170814ac380ee057db.zip CMake-b8a33fb424aa28b710e0ec170814ac380ee057db.tar.gz CMake-b8a33fb424aa28b710e0ec170814ac380ee057db.tar.bz2 |
ENH: Added INSTALL command as a placeholder for a future generic install specification interface. Currently it supports only a SCRIPT option specifying a script to run during the install stage.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 04ae274..4a95ca1 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -354,6 +354,15 @@ void cmLocalGenerator::GenerateInstallRules() exeOutPath = currdir + "/"; } + // Include user-specified install scripts. + std::vector<std::string> const& installScripts = + m_Makefile->GetInstallScripts(); + for(std::vector<std::string>::const_iterator s = installScripts.begin(); + s != installScripts.end(); ++s) + { + fout << "INCLUDE(\"" << s->c_str() << "\")" << std::endl; + } + std::string destination; for(cmTargets::iterator l = tgts.begin(); l != tgts.end(); l++) |