Skip to content

Commit

Permalink
cmake: add -Wnon-virtual-dtor C++ build option
Browse files Browse the repository at this point in the history
  • Loading branch information
arogge committed Feb 15, 2024
1 parent 058dd19 commit b2e994b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ endif()
include(FindIntl)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wextra -Wshadow")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Wshadow")
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Wshadow -Wnon-virtual-dtor"
)

include(BareosSetVariableDefaults)
option(ENABLE_BCONSOLE "Build bconsole binary" ON)
Expand Down

0 comments on commit b2e994b

Please sign in to comment.