From e8d3d5e41c29c22879e02ef8a304895b29bb9b13 Mon Sep 17 00:00:00 2001 From: Scott Date: Sat, 15 Dec 2018 17:01:39 -0500 Subject: [PATCH] Added parenesis for REGEX REPLACE command to fix this error: CMake Error at CMakeLists.txt:25 (string): string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cf2757..ab546f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,9 +22,9 @@ string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") add_definitions(-DOSTYPE="${CMAKE_SYSTEM_NAME}") # Architecture string -string(REGEX REPLACE "amd64" "x86_64" ARCH ${CMAKE_SYSTEM_PROCESSOR}) -string(REGEX REPLACE "i.86" "i386" ARCH ${ARCH}) -string(REGEX REPLACE "^arm.*" "arm" ARCH ${ARCH}) +string(REGEX REPLACE "amd64" "x86_64" ARCH "${CMAKE_SYSTEM_PROCESSOR}") +string(REGEX REPLACE "i.86" "i386" ARCH "${ARCH}") +string(REGEX REPLACE "^arm.*" "arm" ARCH "${ARCH}") add_definitions(-DARCH="${ARCH}") # Linker Flags