summaryrefslogtreecommitdiffstats
path: root/CMakeInstallation.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2014-12-19 14:20:48 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2014-12-19 14:20:48 (GMT)
commit3f2ce7aebc118c8e7171eb5eac12fb63a901c32b (patch)
tree7dcbc1f00c102be090cc3fa5220d39e2cbd9d793 /CMakeInstallation.cmake
parentd9ba0ae35fce3c6fdf2559753093338061588c00 (diff)
downloadhdf5-3f2ce7aebc118c8e7171eb5eac12fb63a901c32b.zip
hdf5-3f2ce7aebc118c8e7171eb5eac12fb63a901c32b.tar.gz
hdf5-3f2ce7aebc118c8e7171eb5eac12fb63a901c32b.tar.bz2
[svn-r25902] Fix CMP0053 warning
Diffstat (limited to 'CMakeInstallation.cmake')
-rw-r--r--CMakeInstallation.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeInstallation.cmake b/CMakeInstallation.cmake
index 651382c..095fb4b 100644
--- a/CMakeInstallation.cmake
+++ b/CMakeInstallation.cmake
@@ -4,7 +4,8 @@ include (${HDF_RESOURCES_DIR}/CMakePackageConfigHelpers.cmake)
# Check for Installation Utilities
#-----------------------------------------------------------------------------
if (WIN32)
- find_program (NSIS_EXECUTABLE NSIS.exe PATHS "$ENV{ProgramFiles}\\NSIS" "$ENV{ProgramFiles(x86)}\\NSIS")
+ set (PF_ENV_EXT "(x86)")
+ find_program (NSIS_EXECUTABLE NSIS.exe PATHS "$ENV{ProgramFiles}\\NSIS" "$ENV{ProgramFiles${PF_ENV_EXT}}\\NSIS")
if(NOT CPACK_WIX_ROOT)
file(TO_CMAKE_PATH "$ENV{WIX}" CPACK_WIX_ROOT)
endif()