From 00a040eee75ef0076180958ed736e3dfe171b49e Mon Sep 17 00:00:00 2001 From: Daniil Cherednik Date: Sun, 27 Nov 2016 22:59:50 +0300 Subject: Support of big endian platforms --- test/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 73f7efa..11ed95d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -14,7 +14,12 @@ endmacro(use_11) use_11() -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -fno-omit-frame-pointer") +if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -fno-omit-frame-pointer") +else () + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fno-omit-frame-pointer") +endif () + include_directories(${gtest_SOURCE_DIR}/include) -- cgit v1.3