InstallScript3.cmake 477 B

123456789101112
  1. message("This is install script 3.")
  2. set(INSTALL_SCRIPT_3_DID_RUN 1)
  3. if(INSTALL_CODE_WITH_COMPONENT_DID_RUN)
  4. message(FATAL_ERROR "Install script 3 did not run before install code with component.")
  5. endif()
  6. if(CMAKE_INSTALL_COMPONENT)
  7. if(NOT "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Development")
  8. message("CMAKE_INSTALL_COMPONENT=\"${CMAKE_INSTALL_COMPONENT}\"")
  9. message(FATAL_ERROR "Install script 3 should only run for \"Development\" INSTALL COMPONENT.")
  10. endif()
  11. endif()