From da6d1501629b36fa6aaefce45116b75b734a1a69 Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sat, 15 Dec 2018 13:14:30 +0100 Subject: Remove explicit -DNDEBUG CMake does this better --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2acb392..f990b44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,11 +45,6 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif() -string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER) -if(CMAKE_BUILD_TYPE_LOWER EQUAL "release") - add_definitions(-DNDEBUG) -endif() - # Disable bogus MSVC warnings if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) -- cgit v1.2.3