Skip to content

Commit

Permalink
Windows : fix search for WiX root directory when using 64bit cmake
Browse files Browse the repository at this point in the history
"C:\Program Files (x86)" directory needs to be checked as well in
this case.
  • Loading branch information
vaintroub committed Aug 11, 2016
1 parent 737964d commit 09cb646
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions win/packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ ENDIF()


SET(MANUFACTURER "MariaDB Corporation Ab")
FIND_PATH(WIX_DIR heat.exe
"$ENV{ProgramFiles}/WiX Toolset v3.9/bin"
"$ENV{ProgramFiles}/WiX Toolset v3.10/bin"
)
SET(WIX_BIN_PATHS)
FOREACH(WIX_VER 3.9 3.10 3.11)
LIST(APPEND WIX_BIN_PATHS "$ENV{ProgramFiles}/WiX Toolset v${WIX_VER}/bin")
LIST(APPEND WIX_BIN_PATHS "$ENV{ProgramFiles} (x86)/WiX Toolset v${WIX_VER}/bin")
ENDFOREACH()

FIND_PATH(WIX_DIR heat.exe ${WIX_BIN_PATHS})
SET(CPACK_WIX_PACKAGE_BASE_NAME "MariaDB")
IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
SET(CPACK_WIX_UPGRADE_CODE "49EB7A6A-1CEF-4A1E-9E89-B9A4993963E3")
Expand Down

0 comments on commit 09cb646

Please sign in to comment.