CPackWIX.cmake 644 B

1234567891011121314151617181920
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. if(NOT CPACK_WIX_ROOT)
  4. string(REPLACE "\\" "/" CPACK_WIX_ROOT "$ENV{WIX}")
  5. endif()
  6. find_program(CPACK_WIX_CANDLE_EXECUTABLE candle
  7. PATHS "${CPACK_WIX_ROOT}" PATH_SUFFIXES "bin")
  8. if(NOT CPACK_WIX_CANDLE_EXECUTABLE)
  9. message(FATAL_ERROR "Could not find the WiX candle executable.")
  10. endif()
  11. find_program(CPACK_WIX_LIGHT_EXECUTABLE light
  12. PATHS "${CPACK_WIX_ROOT}" PATH_SUFFIXES "bin")
  13. if(NOT CPACK_WIX_LIGHT_EXECUTABLE)
  14. message(FATAL_ERROR "Could not find the WiX light executable.")
  15. endif()