diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2014-12-19 14:21:45 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2014-12-19 14:21:45 (GMT) |
commit | 36cefe942df9fd5be47a27ef97ae0e6cdb8f7ee9 (patch) | |
tree | 3e1ccb6b20b5e51d6ce86b17ff988c23cc822b55 | |
parent | d6b44d14dccf80d397e2f69aa2d917e0e464fc35 (diff) | |
download | hdf5-36cefe942df9fd5be47a27ef97ae0e6cdb8f7ee9.zip hdf5-36cefe942df9fd5be47a27ef97ae0e6cdb8f7ee9.tar.gz hdf5-36cefe942df9fd5be47a27ef97ae0e6cdb8f7ee9.tar.bz2 |
[svn-r25903] Fix CMP0053 warning
-rw-r--r-- | CMakeInstallation.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeInstallation.cmake b/CMakeInstallation.cmake index c1ab22a..d85cae0 100644 --- a/CMakeInstallation.cmake +++ b/CMakeInstallation.cmake @@ -3,7 +3,8 @@ # 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() |