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