blob: 927cae8b613b1371444e7e0bdf3b8d5d769967ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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)
IF(INSTALL_CODE_DID_RUN)
MESSAGE("Install code ordering works.")
ELSE(INSTALL_CODE_DID_RUN)
MESSAGE(FATAL_ERROR "Install script 2 did not run after install code.")
ENDIF(INSTALL_CODE_DID_RUN)
FILE(WRITE "${CMAKE_INSTALL_PREFIX}/MyTest/InstallScriptOut.cmake"
"SET(CMAKE_INSTALL_SCRIPT_DID_RUN 1)\n"
)
|