2012-08-13 17:47:32 +00:00
|
|
|
message("This is install script 4.")
|
|
|
|
if(INSTALL_SCRIPT_3_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 3 did not run before install script 4.")
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2012-08-13 17:47:32 +00:00
|
|
|
if(INSTALL_CODE_WITH_COMPONENT_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 4 did not run after install with component code.")
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2007-10-15 11:08:15 +00:00
|
|
|
|
2012-08-13 17:47:32 +00: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 17:50:14 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
2007-10-15 11:08:15 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
file(WRITE "${CMAKE_INSTALL_PREFIX}/MyTest/InstallScript4Out.cmake"
|
|
|
|
"set(CMAKE_INSTALL_SCRIPT_4_DID_RUN 1)\n"
|
2007-10-15 11:08:15 +00:00
|
|
|
)
|