From bc36d3481bbeac3387baa53fe7082038570945b8 Mon Sep 17 00:00:00 2001 From: zyr17 Date: Tue, 13 Feb 2024 16:20:05 +0800 Subject: [PATCH] update debug flags --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35e6c7e..3402b12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,11 +7,12 @@ set (CMAKE_C_COMPILER g++) aux_source_directory(./src DIR_MAIN) aux_source_directory(./src/CJsonObject DIR_LIB) add_executable(PaipuAnalyzer ${DIR_MAIN} ${DIR_LIB}) -SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -std=c++11 -O0 -Wall -g -ggdb -D DEBUG") IF(APPLE) SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -std=c++11 -O3") + SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -std=c++11 -O0 -Wall -g -ggdb -D DEBUG") ELSE() SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -std=c++11 -O3 -static") + SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -std=c++11 -O0 -Wall -g -ggdb -D DEBUG -static") ENDIF() set(FAKE_TARGET fakeTarget)