mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-08 01:41:59 +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_array
|
||||||
test_numpy_dtypes
|
test_numpy_dtypes
|
||||||
test_numpy_vectorize
|
test_numpy_vectorize
|
||||||
|
test_odr_guard_1
|
||||||
|
test_odr_guard_2
|
||||||
test_opaque_types
|
test_opaque_types
|
||||||
test_operator_overloading
|
test_operator_overloading
|
||||||
test_pickling
|
test_pickling
|
||||||
@ -384,7 +386,7 @@ function(pybind11_enable_warnings target_name)
|
|||||||
-Wnon-virtual-dtor)
|
-Wnon-virtual-dtor)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PYBIND11_WERROR)
|
if(PYBIND11_WERROR AND NOT PYBIND11_WERROR)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
target_compile_options(${target_name} PRIVATE /WX)
|
target_compile_options(${target_name} PRIVATE /WX)
|
||||||
elseif(PYBIND11_CUDA_TESTS)
|
elseif(PYBIND11_CUDA_TESTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user