mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
- disabled discord-rpc debug info for configurations without it
This commit is contained in:
parent
c7e425f759
commit
7afcf43f20
1 changed files with 4 additions and 1 deletions
|
@ -73,12 +73,15 @@ if(UNIX)
|
||||||
target_link_libraries(discord-rpc PUBLIC pthread)
|
target_link_libraries(discord-rpc PUBLIC pthread)
|
||||||
|
|
||||||
target_compile_options(discord-rpc PRIVATE
|
target_compile_options(discord-rpc PRIVATE
|
||||||
-g
|
|
||||||
-Wall
|
-Wall
|
||||||
-Wextra
|
-Wextra
|
||||||
-Wpedantic
|
-Wpedantic
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (${CMAKE_BUILD_TYPE} STREQUAL Debug OR ${CMAKE_BUILD_TYPE} STREQUAL RelWithDebInfo)
|
||||||
|
target_compile_options(discord-rpc PRIVATE -g)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (${WARNINGS_AS_ERRORS})
|
if (${WARNINGS_AS_ERRORS})
|
||||||
target_compile_options(discord-rpc PRIVATE -Werror)
|
target_compile_options(discord-rpc PRIVATE -Werror)
|
||||||
endif (${WARNINGS_AS_ERRORS})
|
endif (${WARNINGS_AS_ERRORS})
|
||||||
|
|
Loading…
Reference in a new issue