diff options
-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() |