Fix DIST_DIR setting for Windows builds (#3945)

This commit is contained in:
Ben Doherty
2021-05-12 11:15:10 -07:00
committed by Benjamin Doherty
parent d7cb38e706
commit 9db665ca5c

View File

@@ -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()