summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-28 01:59:44 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-28 01:59:44 (GMT)
commitdb68c543ff7ee0a59ec5fa463f59255193a9a479 (patch)
treee7311dabbedcdb504bf38a9b7fdb3a0ed8791ddc /Source/cmLocalGenerator.cxx
parent451522381d510c02185ac8bfb75c3aa93b863fb4 (diff)
downloadCMake-db68c543ff7ee0a59ec5fa463f59255193a9a479.zip
CMake-db68c543ff7ee0a59ec5fa463f59255193a9a479.tar.gz
CMake-db68c543ff7ee0a59ec5fa463f59255193a9a479.tar.bz2
ENH: Add pre and post install script support
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index eea1b17..bac89cc 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -130,6 +130,13 @@ void cmLocalGenerator::GenerateInstallRules()
const char* dest = destination.c_str();
int type = l->second.GetType();
+ const char* preinstall = l->second.GetProperty("PRE_INSTALL_SCRIPT");
+ const char* postinstall = l->second.GetProperty("POST_INSTALL_SCRIPT");
+ if ( preinstall )
+ {
+ fout << "INCLUDE(" << preinstall << ")" << std::endl;
+ }
+
std::string fname;
const char* files;
// now install the target
@@ -226,6 +233,10 @@ void cmLocalGenerator::GenerateInstallRules()
default:
break;
}
+ if ( postinstall )
+ {
+ fout << "INCLUDE(" << postinstall << ")" << std::endl;
+ }
}
}
cmMakefile* mf = this->GetMakefile();