From 542e6122d6a055b312a76c3ac501ec3500d7c757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Thu, 6 Oct 2016 20:06:35 +0200 Subject: [PATCH] Remove Debug config, should rather use CMAKE_BUILD_TYPE variable rather --- CMakeLists.txt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fad2c0d..cdc6d73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,15 +22,6 @@ if (CODE_COVERAGE) add_definitions(-DCOVERAGE) endif() -option(BUILD_DEBUG "build debug binaries" ON) -if (BUILD_DEBUG) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0") - add_definitions(-DDEBUG) -else() - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2") - add_definitions(-DNDEBUG) -endif() - option(BUILD_SANITIZE "build with address sanitizer" OFF) if (BUILD_SANITIZE) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address")