summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-10 18:54:36 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-10 18:54:36 (GMT)
commitb8a33fb424aa28b710e0ec170814ac380ee057db (patch)
tree23c06b61601d90d4703271fed4f90d2d3df7fee7 /Source/cmLocalGenerator.cxx
parentd2621064e27e38eba984c994746eaee40bc09ebc (diff)
downloadCMake-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.cxx9
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++)