From 2cfdfee43d5407aae012e1b8e5898be536f9bbc0 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 23 Apr 2020 03:24:25 +1000 Subject: [PATCH] Fix CMakeLists.txt following changes to makefile. --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab546f0..a71aa63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,13 +19,13 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-strict-aliasing -fwrapv") string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") # Operating system -add_definitions(-DOSTYPE="${CMAKE_SYSTEM_NAME}") +add_definitions(-DYQ2OSTYPE="${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}") -add_definitions(-DARCH="${ARCH}") +string(REGEX REPLACE "amd64" "x86_64" YQ2_ARCH "${CMAKE_SYSTEM_PROCESSOR}") +string(REGEX REPLACE "i.86" "i386" YQ2_ARCH "${YQ2_ARCH}") +string(REGEX REPLACE "^arm.*" "arm" YQ2_ARCH "${YQ2_ARCH}") +add_definitions(-DYQ2ARCH="${YQ2_ARCH}") # Linker Flags if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")