Skip to content

Commit 872a167

Browse files
pengyutang125SKY-20230424HUG\Administrator
and
SKY-20230424HUG\Administrator
authored
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 <[email protected]>
1 parent ae6f7f7 commit 872a167

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g -O0 -std=gnu11 -Wall ${CMAKE_C_FLAG
110110

111111
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
112112
add_definitions(-DXQC_SYS_WINDOWS=1)
113+
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /Zi")
113114
endif()
114115

115116

0 commit comments

Comments
 (0)