mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-27 15:57:56 +00:00
CMake: do not overwrite but only append to CMAKE_C_FLAGS_DEBUG
This is useful to force "smart" IDEs (like CLIon) to use debug flag -g even it may have decided that "-D_DEBUG" (which is already present) is sufficient.
This commit is contained in:
parent
cdde081b35
commit
f587f38c08
@ -412,7 +412,7 @@ IF (MSVC)
|
|||||||
# /MTd - Statically link the multithreaded debug version of the CRT
|
# /MTd - Statically link the multithreaded debug version of the CRT
|
||||||
# /MDd - Dynamically link the multithreaded debug version of the CRT
|
# /MDd - Dynamically link the multithreaded debug version of the CRT
|
||||||
# /RTC1 - Run time checks
|
# /RTC1 - Run time checks
|
||||||
SET(CMAKE_C_FLAGS_DEBUG "/Zi /Od /D_DEBUG /RTC1 ${CRT_FLAG_DEBUG}")
|
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /Zi /Od /D_DEBUG /RTC1 ${CRT_FLAG_DEBUG}")
|
||||||
|
|
||||||
# /DNDEBUG - Disables asserts
|
# /DNDEBUG - Disables asserts
|
||||||
# /MT - Statically link the multithreaded release version of the CRT
|
# /MT - Statically link the multithreaded release version of the CRT
|
||||||
@ -464,7 +464,7 @@ ELSE ()
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF (WIN32 AND NOT CYGWIN)
|
IF (WIN32 AND NOT CYGWIN)
|
||||||
SET(CMAKE_C_FLAGS_DEBUG "-D_DEBUG")
|
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
IF (MINGW) # MinGW always does PIC and complains if we tell it to
|
IF (MINGW) # MinGW always does PIC and complains if we tell it to
|
||||||
|
Loading…
Reference in New Issue
Block a user