diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d71a51e6a03..2570b07177c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -298,22 +298,22 @@ function(pybind11_enable_warnings target_name) -Wnon-virtual-dtor) endif() - if(PYBIND11_WERROR) - if(MSVC) - target_compile_options(${target_name} PRIVATE /WX) - elseif(PYBIND11_CUDA_TESTS) - target_compile_options(${target_name} PRIVATE "SHELL:-Werror all-warnings") - elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang|IntelLLVM)") - target_compile_options(${target_name} PRIVATE -Werror) - elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel") - target_compile_options( - ${target_name} - PRIVATE - -Werror-all - # "Inlining inhibited by limit max-size", "Inlining inhibited by limit max-total-size" - -diag-disable 11074,11076) - endif() - endif() + #if(PYBIND11_WERROR) + # if(MSVC) + # target_compile_options(${target_name} PRIVATE /WX) + # elseif(PYBIND11_CUDA_TESTS) + # target_compile_options(${target_name} PRIVATE "SHELL:-Werror all-warnings") + # elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang|IntelLLVM)") + # target_compile_options(${target_name} PRIVATE -Werror) + # elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel") + # target_compile_options( + # ${target_name} + # PRIVATE + # -Werror-all + # # "Inlining inhibited by limit max-size", "Inlining inhibited by limit max-total-size" + # -diag-disable 11074,11076) + # endif() + #endif() # Needs to be re-added since the ordering requires these to be after the ones above if(CMAKE_CXX_STANDARD