- disabled discord-rpc debug info for configurations without it

This commit is contained in:
alexey.lysiuk 2022-08-29 10:42:07 +03:00
parent c7e425f759
commit 7afcf43f20
1 changed files with 4 additions and 1 deletions

View File

@ -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})