mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 15:20:34 +00:00
Add new tests to CMakeLists.txt, disable PYBIND11_WERROR
This commit is contained in:
parent
b8876ac2af
commit
ca5708ad96
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user