Skip to content

Commit 7ade984

Browse files
authored
Update CMakeLists.txt
1 parent 6d15c04 commit 7ade984

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,15 +406,13 @@ function(pybind11_enable_warnings target_name)
406406
${target_name}
407407
PRIVATE -Wall
408408
-Wextra
409+
-Wpedantic
409410
-Wconversion
410411
-Wcast-qual
411412
-Wdeprecated
412413
-Wundef
413414
-Wnon-virtual-dtor)
414415
target_link_options(${target_name} PRIVATE -Werror -Wodr -Wlto-type-mismatch)
415-
if(DEFINED CMAKE_CXX_STANDARD AND NOT CMAKE_CXX_STANDARD VERSION_LESS 14)
416-
target_compile_options(${target_name} PRIVATE -Wpedantic)
417-
endif()
418416
endif()
419417

420418
if(PYBIND11_WERROR)

0 commit comments

Comments
 (0)