fix: only enable -Werror and other flags for debug builds only
This commit is contained in:
parent
a4fc381177
commit
942d78cd4d
@ -39,7 +39,11 @@ if (WIN32)
|
||||
target_compile_options(soundux PRIVATE /W4)
|
||||
else()
|
||||
add_executable(soundux ${src})
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
message(STATUS "Enabling warning and error flags for debug build")
|
||||
target_compile_options(soundux PRIVATE -Wall -Werror -Wextra -pedantic -Wno-unused-lambda-capture -Wno-gnu)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_compile_definitions(soundux PRIVATE SOUNDUX_VERSION="${FULL_VERSION_STRING}" WNCK_I_KNOW_THIS_IS_UNSTABLE=1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user