From ca5708ad96c0c3cd1fe7dc6c3957eae977619b23 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 21 Jun 2022 03:30:24 -0700 Subject: [PATCH] Add new tests to CMakeLists.txt, disable PYBIND11_WERROR --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4769ea677..d3a82a438 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -160,6 +160,8 @@ set(PYBIND11_TEST_FILES test_numpy_array test_numpy_dtypes test_numpy_vectorize + test_odr_guard_1 + test_odr_guard_2 test_opaque_types test_operator_overloading test_pickling @@ -384,7 +386,7 @@ function(pybind11_enable_warnings target_name) -Wnon-virtual-dtor) endif() - if(PYBIND11_WERROR) + if(PYBIND11_WERROR AND NOT PYBIND11_WERROR) if(MSVC) target_compile_options(${target_name} PRIVATE /WX) elseif(PYBIND11_CUDA_TESTS)