summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-06-26 20:42:21 +0200
committerlouiz’ <louiz@louiz.org>2018-07-10 19:35:13 +0200
commite39434b9a79db013275d575e68ef75cd803479aa (patch)
treedd7fed1d10bce7cc20f5855ac000e488c9e2135f /CMakeLists.txt
parent0d886d5f32dda3be5827ed2c84f9bf2806b69601 (diff)
downloadbiboumi-e39434b9a79db013275d575e68ef75cd803479aa.tar.gz
biboumi-e39434b9a79db013275d575e68ef75cd803479aa.tar.bz2
biboumi-e39434b9a79db013275d575e68ef75cd803479aa.tar.xz
biboumi-e39434b9a79db013275d575e68ef75cd803479aa.zip
meh meh
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6ac616..0f1592f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,13 +30,10 @@ find_library(LIBUBSAN NAMES ubsan libubsan.so.0)
#
## Set various debug flags (instrumentation libs, coverage, …)
#
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -pedantic -Wall -Wextra -Wconversion -fvisibility=hidden -fvisibility-inlines-hidden")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1z -pedantic -Wall -Wextra -Wconversion -fvisibility=hidden -fvisibility-inlines-hidden")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage --coverage")
endif()
-if(LIBASAN)
- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address")
-endif()
if(LIBUBSAN)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=undefined")
endif()