From 872a167afe8c0919f2ed7e723e933ff966d6e9b2 Mon Sep 17 00:00:00 2001 From: fantasy Date: Tue, 7 May 2024 15:41:39 +0800 Subject: [PATCH] add debug information for vs in windows platformDevelop (#419) * add undef to fix windows compile error * fix link error for demo_server and demo_client * add debug information for visual studio * add debug information for vs in windows platform --------- Co-authored-by: SKY-20230424HUG\Administrator --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e2ce2f9..f76b3b97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,6 +110,7 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g -O0 -std=gnu11 -Wall ${CMAKE_C_FLAG if(CMAKE_SYSTEM_NAME MATCHES "Windows") add_definitions(-DXQC_SYS_WINDOWS=1) + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /Zi") endif()