Skip to content

Commit

Permalink
allow deprecated for warnings test
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Dec 19, 2024
1 parent da06b47 commit b7a49af
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,18 @@ function(set_strict_warnings file mode)
# Enable all warnings and treat warnings as errors
# to check that library can be built in maximally strict mode
if(MSVC)
target_compile_options(${target} PRIVATE /W4 /WX)
target_compile_options(${target} PRIVATE
/W4 # show all warning
/WX # consider all warning as errors
/wd4996 # allow deprecated
)
else()
target_compile_options(${target} PRIVATE
-Wall
-Wextra
-Wpedantic
-Wold-style-cast
-Wold-style-cast
-Wno-deprecated-declarations
-Werror)
endif()
endfunction()
Expand Down

0 comments on commit b7a49af

Please sign in to comment.