summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniil Cherednik <[email protected]>2016-11-27 22:59:50 +0300
committerDaniil Cherednik <[email protected]>2016-11-27 22:59:50 +0300
commit00a040eee75ef0076180958ed736e3dfe171b49e (patch)
tree80172eee5ba972721be28bbebc918f057aba299c /test
parentfa1541bc5eb0339e0752bda6afd67f6669e32232 (diff)
Support of big endian platforms
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
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)