summaryrefslogtreecommitdiffstats
path: root/CMakeInstallation.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2014-11-25 14:18:06 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2014-11-25 14:18:06 (GMT)
commitbe054d6f6bed03995d7b17b7e287d61cebf20d8b (patch)
treee162caf83abf78945d420998e87767eab785e630 /CMakeInstallation.cmake
parenta1a1aba1308077a0a7fcfdb300d86349667430ba (diff)
downloadhdf5-be054d6f6bed03995d7b17b7e287d61cebf20d8b.zip
hdf5-be054d6f6bed03995d7b17b7e287d61cebf20d8b.tar.gz
hdf5-be054d6f6bed03995d7b17b7e287d61cebf20d8b.tar.bz2
[svn-r25842] Change WiX program check to use the ENV variable for path.
Tested: Windows
Diffstat (limited to 'CMakeInstallation.cmake')
-rw-r--r--CMakeInstallation.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeInstallation.cmake b/CMakeInstallation.cmake
index f2053b5..c1ab22a 100644
--- a/CMakeInstallation.cmake
+++ b/CMakeInstallation.cmake
@@ -4,7 +4,10 @@
#-----------------------------------------------------------------------------
if (WIN32)
find_program (NSIS_EXECUTABLE NSIS.exe PATHS "$ENV{ProgramFiles}\\NSIS" "$ENV{ProgramFiles(x86)}\\NSIS")
- find_program (WIX_EXECUTABLE candle PATHS "$ENV{ProgramFiles}\\WiX\ Toolset\ v3.9\\bin" "$ENV{ProgramFiles(x86)}\\WiX\ Toolset\ v3.9\\bin")
+ if(NOT CPACK_WIX_ROOT)
+ file(TO_CMAKE_PATH "$ENV{WIX}" CPACK_WIX_ROOT)
+ endif()
+ find_program (WIX_EXECUTABLE candle PATHS "${CPACK_WIX_ROOT}/bin")
endif (WIN32)
#-----------------------------------------------------------------------------