mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
cmake: quotes around ARCH_ID string
It's only blank only if somebody running cmake in MSYS/MinGW (Windows) manually forgets to add -D ARCH, but when it is blank, without quotes those lines are invalid cmake syntax.
This commit is contained in:
parent
77224bbf48
commit
c79104086c
@ -63,11 +63,11 @@ if (NOT ARCH OR ARCH STREQUAL "" OR ARCH STREQUAL "native" OR ARCH STREQUAL "def
|
||||
else()
|
||||
set(ARCH_ID "${ARCH}")
|
||||
endif()
|
||||
string(TOLOWER ${ARCH_ID} ARM_ID)
|
||||
string(SUBSTRING ${ARCH_ID} 0 3 ARM_TEST)
|
||||
string(TOLOWER "${ARCH_ID}" ARM_ID)
|
||||
string(SUBSTRING "${ARCH_ID}" 0 3 ARM_TEST)
|
||||
if (ARM_TEST STREQUAL "arm")
|
||||
set(ARM 1)
|
||||
string(SUBSTRING ${ARCH_ID} 0 5 ARM_TEST)
|
||||
string(SUBSTRING "${ARCH_ID}" 0 5 ARM_TEST)
|
||||
if (ARM_TEST STREQUAL "armv6")
|
||||
set(ARM6 1)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user