aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-06 16:14:57 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:45 +0100
commit37da4df5995e0f8fa746c39e8d0ff83e32de03a9 (patch)
tree76fd87e92bb7256e7071fa9ce3525fe502c761cb
parent2781c2ed38d778c5bfd258678163949f3593a3e7 (diff)
downloadlibnitrokey-37da4df5995e0f8fa746c39e8d0ff83e32de03a9.tar.gz
libnitrokey-37da4df5995e0f8fa746c39e8d0ff83e32de03a9.tar.bz2
Do not let to enable both ASAN and TSAN
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58443c0..d44dba9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,9 @@ IF (UNIX)
SET(EXTRA_LIBS ${EXTRA_LIBS} tsan )
ADD_DEFINITIONS(-fsanitize=thread -fno-omit-frame-pointer -fPIE -pie -g)
ENDIF()
+ IF(ADD_TSAN AND ADD_ASAN)
+ message(FATAL_ERROR "TSAN and ASAN cannot be used at the same time")
+ ENDIF()
ENDIF()
project(libnitrokey CXX)