From 369a3905fa6aca6080a0b23e5c2d8444a61a3707 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 21 Jun 2022 18:04:50 -0700 Subject: [PATCH] Restore use of PYBIND11_WERROR --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d3a82a438..99205ab8f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -386,7 +386,7 @@ function(pybind11_enable_warnings target_name) -Wnon-virtual-dtor) endif() - if(PYBIND11_WERROR AND NOT PYBIND11_WERROR) + if(PYBIND11_WERROR) if(MSVC) target_compile_options(${target_name} PRIVATE /WX) elseif(PYBIND11_CUDA_TESTS)