summaryrefslogtreecommitdiffstats
path: root/Tests/SimpleInstall/PostInstall.cmake
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 /Tests/SimpleInstall/PostInstall.cmake
parent451522381d510c02185ac8bfb75c3aa93b863fb4 (diff)
downloadCMake-db68c543ff7ee0a59ec5fa463f59255193a9a479.zip
CMake-db68c543ff7ee0a59ec5fa463f59255193a9a479.tar.gz
CMake-db68c543ff7ee0a59ec5fa463f59255193a9a479.tar.bz2
ENH: Add pre and post install script support
Diffstat (limited to 'Tests/SimpleInstall/PostInstall.cmake')
-rw-r--r--Tests/SimpleInstall/PostInstall.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/SimpleInstall/PostInstall.cmake b/Tests/SimpleInstall/PostInstall.cmake
new file mode 100644
index 0000000..52ea140
--- /dev/null
+++ b/Tests/SimpleInstall/PostInstall.cmake
@@ -0,0 +1,6 @@
+MESSAGE("In post install")
+IF(PRE_INSTALL_DID_RUN)
+ MESSAGE("Pre and post install work fine")
+ELSE(PRE_INSTALL_DID_RUN)
+ MESSAGE(FATAL_ERROR "Pre install did not run before post install")
+ENDIF(PRE_INSTALL_DID_RUN)