message: Fix DIST_DIR setting for Windows builds
diff: @@ -449,11 +449,15 @@ if (NOT DIST_ARCH)
  if (CMAKE_OSX_ARCHITECTURES MATCHES ".*;.*")
  set(DIST_ARCH "universal")
  else()
  - if (NOT CMAKE_OSX_ARCHITECTURES STREQUAL "")
  + if (NOT "${CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
  set(DIST_ARCH "${CMAKE_OSX_ARCHITECTURES}")
  endif()
  endif()
  +
  endif()
  +# On Windows machines, the host processor is set to 'AMD64', which we'll interpret as x86_64.
  +string(TOLOWER "${DIST_ARCH}" DIST_ARCH)
  +string(REPLACE "amd64" "x86_64" DIST_ARCH "${DIST_ARCH}")
  if (NOT DIST_DIR)
  set(DIST_DIR "${DIST_ARCH}")
  endif()
  