Restore use of PYBIND11_WERROR

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-06-21 18:04:50 -07:00
parent 502f3cb969
commit 369a3905fa

View File

@ -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)