From eb841723759348906eae1100b260ecd98431c040 Mon Sep 17 00:00:00 2001 From: Michael Ilyin Date: Fri, 22 Sep 2023 16:37:43 +0200 Subject: [PATCH] remove strinct warnings check from examples --- examples/CMakeLists.txt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 762b2d80..788e3a91 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -30,21 +30,6 @@ function(add_example file mode lib) target_link_libraries(${target} PUBLIC ${lib}) set_property(TARGET ${target} PROPERTY LANGUAGE CXX) set_property(TARGET ${target} PROPERTY CXX_STANDARD 17) - - # Enable all warnings and treat warnings as errors only when building examples. - # Supposedly, enabling it for examples only, but not for the library target itself - # is a good compromise. It guarantees the continuous checking the code and do not - # breaks dependent projects if warnings are mistakenly introduced in the library. - if(MSVC) - target_compile_options(${target} PRIVATE /W4 /WX) - else() - target_compile_options(${target} PRIVATE - -Wall - -Wextra - -Wpedantic - -Werror) - endif() - endfunction() function(add_examples glob mode lib)