aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-09-18 11:36:05 +0200
committerRiccardo Spagni <ric@spagni.net>2016-09-18 11:36:05 +0200
commit1db3be3e90c5c4d980b7df82d5d81f48607df668 (patch)
tree58da0a33a63b1fcbbc1e1e8ff84e57e1343afc56
parentMerge pull request #1085 (diff)
parentcmake: quotes around ARCH_ID string (diff)
downloadmonero-1db3be3e90c5c4d980b7df82d5d81f48607df668.tar.xz
Merge pull request #1086
c791040 cmake: quotes around ARCH_ID string (redfish)
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0c813b867..ca600935d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()