Commit 85d930e5 authored by Ronan's avatar Ronan

fix(CMakeLists.txt): add correctly DEBUG variable

parent 8ba35cf9
......@@ -70,12 +70,8 @@ set(CMAKE_CXX_STANDARD 11)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-DDEBUG")
if(NOT WIN32)
list(APPEND CMAKE_CXX_FLAGS_DEBUG "-g")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions("-DDEBUG")
endif()
if(ENABLE_STATIC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment