Fix DIST_DIR setting for Windows builds (#3945)
This commit is contained in:
committed by
Benjamin Doherty
parent
d7cb38e706
commit
9db665ca5c
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user