summaryrefslogtreecommitdiffstats
path: root/Tests/SimpleInstallS2/InstallScript2.cmake
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 /Tests/SimpleInstallS2/InstallScript2.cmake
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 'Tests/SimpleInstallS2/InstallScript2.cmake')
-rw-r--r--Tests/SimpleInstallS2/InstallScript2.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/SimpleInstallS2/InstallScript2.cmake b/Tests/SimpleInstallS2/InstallScript2.cmake
new file mode 100644
index 0000000..fdbce81
--- /dev/null
+++ b/Tests/SimpleInstallS2/InstallScript2.cmake
@@ -0,0 +1,9 @@
+MESSAGE("This is install script 2.")
+IF(INSTALL_SCRIPT_1_DID_RUN)
+ MESSAGE("Install script ordering works.")
+ELSE(INSTALL_SCRIPT_1_DID_RUN)
+ MESSAGE(FATAL_ERROR "Install script 1 did not run before install script 2.")
+ENDIF(INSTALL_SCRIPT_1_DID_RUN)
+FILE(WRITE "${CMAKE_INSTALL_PREFIX}/InstallScriptOut.cmake"
+ "SET(CMAKE_INSTALL_SCRIPT_DID_RUN 1)\n"
+ )