2006-02-10 21:54:36 +03:00
|
|
|
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)
|
2006-03-08 22:02:30 +03:00
|
|
|
FILE(WRITE "${CMAKE_INSTALL_PREFIX}/MyTest/InstallScriptOut.cmake"
|
2006-02-10 21:54:36 +03:00
|
|
|
"SET(CMAKE_INSTALL_SCRIPT_DID_RUN 1)\n"
|
|
|
|
)
|