File tree 1 file changed +16
-16
lines changed
1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -298,22 +298,22 @@ function(pybind11_enable_warnings target_name)
298
298
-Wnon-virtual-dtor)
299
299
endif ()
300
300
301
- if (PYBIND11_WERROR)
302
- if (MSVC )
303
- target_compile_options (${target_name} PRIVATE /WX)
304
- elseif (PYBIND11_CUDA_TESTS)
305
- target_compile_options (${target_name} PRIVATE "SHELL:-Werror all-warnings" )
306
- elseif (CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang|IntelLLVM)" )
307
- target_compile_options (${target_name} PRIVATE -Werror)
308
- elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel" )
309
- target_compile_options (
310
- ${target_name}
311
- PRIVATE
312
- -Werror-all
313
- # "Inlining inhibited by limit max-size", "Inlining inhibited by limit max-total-size"
314
- -diag-disable 11074,11076)
315
- endif ()
316
- endif ()
301
+ # if(PYBIND11_WERROR)
302
+ # if(MSVC)
303
+ # target_compile_options(${target_name} PRIVATE /WX)
304
+ # elseif(PYBIND11_CUDA_TESTS)
305
+ # target_compile_options(${target_name} PRIVATE "SHELL:-Werror all-warnings")
306
+ # elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang|IntelLLVM)")
307
+ # target_compile_options(${target_name} PRIVATE -Werror)
308
+ # elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
309
+ # target_compile_options(
310
+ # ${target_name}
311
+ # PRIVATE
312
+ # -Werror-all
313
+ # # "Inlining inhibited by limit max-size", "Inlining inhibited by limit max-total-size"
314
+ # -diag-disable 11074,11076)
315
+ # endif()
316
+ # endif()
317
317
318
318
# Needs to be re-added since the ordering requires these to be after the ones above
319
319
if (CMAKE_CXX_STANDARD
You can’t perform that action at this time.
0 commit comments