Skip to content

Commit 0b00509

Browse files
authored
tests: check pedantic C++14
1 parent fccfaed commit 0b00509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function(pybind11_enable_warnings target_name)
412412
-Wundef
413413
-Wnon-virtual-dtor)
414414
target_link_options(${target_name} PRIVATE -Werror -Wodr -Wlto-type-mismatch)
415-
if(DEFINED CMAKE_CXX_STANDARD AND NOT CMAKE_CXX_STANDARD VERSION_LESS 20)
415+
if(DEFINED CMAKE_CXX_STANDARD AND NOT CMAKE_CXX_STANDARD VERSION_LESS 14)
416416
target_compile_options(${target_name} PRIVATE -Wpedantic)
417417
endif()
418418
endif()

0 commit comments

Comments
 (0)