mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 04:31:09 +00:00
Quote the raw architecture string, it might contain whitespaces.
This commit is contained in:
parent
eaa4aa46ce
commit
751b09ba33
1 changed files with 3 additions and 3 deletions
|
@ -73,9 +73,9 @@ add_definitions(-DYQ2OSTYPE="${YQ2OSTYPE}")
|
|||
|
||||
# Architecture string.
|
||||
set(YQ2ARCH "${CMAKE_SYSTEM_PROCESSOR}" CACHE STRING "Override CPU architecture")
|
||||
string(REGEX REPLACE "amd64" "x86_64" ARCH ${YQ2ARCH})
|
||||
string(REGEX REPLACE "i.86" "i386" ARCH ${ARCH})
|
||||
string(REGEX REPLACE "^arm.*" "arm" ARCH ${ARCH})
|
||||
string(REGEX REPLACE "amd64" "x86_64" ARCH "${YQ2ARCH}")
|
||||
string(REGEX REPLACE "i.86" "i386" ARCH "${ARCH}")
|
||||
string(REGEX REPLACE "^arm.*" "arm" ARCH "${ARCH}")
|
||||
add_definitions(-DYQ2ARCH="${ARCH}")
|
||||
|
||||
# Systemwide installation of game assets.
|
||||
|
|
Loading…
Reference in a new issue