2012-08-13 21:47:32 +04:00
|
|
|
message("This is install script 4.")
|
|
|
|
if(INSTALL_SCRIPT_3_DID_RUN)
|
|
|
|
message("Install script ordering works.")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
message(FATAL_ERROR "Install script 3 did not run before install script 4.")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(INSTALL_CODE_WITH_COMPONENT_DID_RUN)
|
|
|
|
message("Install code ordering works.")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
message(FATAL_ERROR "Install script 4 did not run after install with component code.")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2007-10-15 15:08:15 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(CMAKE_INSTALL_COMPONENT)
|
|
|
|
if(NOT "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Development")
|
|
|
|
message("CMAKE_INSTALL_COMPONENT=\"${CMAKE_INSTALL_COMPONENT}\"")
|
|
|
|
message(FATAL_ERROR "Install script 4 should only run for \"Development\" INSTALL COMPONENT.")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endif()
|
2007-10-15 15:08:15 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
file(WRITE "${CMAKE_INSTALL_PREFIX}/MyTest/InstallScript4Out.cmake"
|
|
|
|
"set(CMAKE_INSTALL_SCRIPT_4_DID_RUN 1)\n"
|
2007-10-15 15:08:15 +04:00
|
|
|
)
|