diff options
author | Brad King <brad.king@kitware.com> | 2024-03-14 15:37:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-03-14 15:51:03 (GMT) |
commit | 694f14f96f8f64725461a585e3c1d11a9b00aec3 (patch) | |
tree | d46199041f7f487510624d4e2c818514dceb37d8 /Tests | |
parent | cdd8f59eb1fa23c0dcb1595063773920f9ed9974 (diff) | |
download | CMake-694f14f96f8f64725461a585e3c1d11a9b00aec3.zip CMake-694f14f96f8f64725461a585e3c1d11a9b00aec3.tar.gz CMake-694f14f96f8f64725461a585e3c1d11a9b00aec3.tar.bz2 |
Tests: Teach CPackWiXGenerator to use WiX tools in PATH
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake b/Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake index c549e61..28665ee 100644 --- a/Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake +++ b/Tests/CPackWiXGenerator/RunCPackVerifyResult.cmake @@ -39,9 +39,8 @@ endif() function(run_wix_command command) file(TO_CMAKE_PATH "$ENV{WIX}" WIX_ROOT) - set(WIX_PROGRAM "${WIX_ROOT}/bin/${command}.exe") - - if(NOT EXISTS "${WIX_PROGRAM}") + find_program(WIX_PROGRAM NAMES ${command} NO_CACHE PATHS "${WIX_ROOT}" PATH_SUFFIXES "bin") + if(NOT WIX_PROGRAM) message(FATAL_ERROR "Failed to find WiX Tool: ${WIX_PROGRAM}") endif() |