mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 04:01:31 +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_compile_options(discord-rpc PRIVATE
|
||||
-g
|
||||
-Wall
|
||||
-Wextra
|
||||
-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})
|
||||
target_compile_options(discord-rpc PRIVATE -Werror)
|
||||
endif (${WARNINGS_AS_ERRORS})
|
||||
|
|
Loading…
Reference in a new issue