2012-08-13 13:47:32 -04:00
|
|
|
message("This is install script 2.")
|
|
|
|
if(INSTALL_SCRIPT_1_DID_RUN)
|
|
|
|
message("Install script ordering works.")
|
2012-08-13 13:50:14 -04:00
|
|
|
else()
|
2012-08-13 13:47:32 -04:00
|
|
|
message(FATAL_ERROR "Install script 1 did not run before install script 2.")
|
2012-08-13 13:50:14 -04:00
|
|
|
endif()
|
2012-08-13 13:47:32 -04:00
|
|
|
if(INSTALL_CODE_DID_RUN)
|
|
|
|
message("Install code ordering works.")
|
2012-08-13 13:50:14 -04:00
|
|
|
else()
|
2012-08-13 13:47:32 -04:00
|
|
|
message(FATAL_ERROR "Install script 2 did not run after install code.")
|
2012-08-13 13:50:14 -04:00
|
|
|
endif()
|
2012-08-13 13:47:32 -04:00
|
|
|
file(WRITE "${CMAKE_INSTALL_PREFIX}/MyTest/InstallScriptOut.cmake"
|
|
|
|
"set(CMAKE_INSTALL_SCRIPT_DID_RUN 1)\n"
|
2006-02-10 13:54:36 -05:00
|
|
|
)
|