Commit 85d930e5 authored by Ronan's avatar Ronan
Browse files

fix(CMakeLists.txt): add correctly DEBUG variable

parent 8ba35cf9
...@@ -70,12 +70,8 @@ set(CMAKE_CXX_STANDARD 11) ...@@ -70,12 +70,8 @@ set(CMAKE_CXX_STANDARD 11)
if(NOT CMAKE_BUILD_TYPE) if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release") set(CMAKE_BUILD_TYPE "Release")
endif() endif()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") add_definitions("-DDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-DDEBUG")
if(NOT WIN32)
list(APPEND CMAKE_CXX_FLAGS_DEBUG "-g")
endif() endif()
if(ENABLE_STATIC) 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