mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
Restore use of PYBIND11_WERROR
This commit is contained in:
parent
502f3cb969
commit
369a3905fa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user