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