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.

This commit is contained in:
Brad King
2006-02-10 13:54:36 -05:00
parent d2621064e2
commit b8a33fb424
12 changed files with 212 additions and 3 deletions
+9
View File
@@ -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"
)