File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
src/beman/inplace_vector/tests Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,17 @@ target_link_libraries(beman.inplace_vector.test PRIVATE beman.inplace_vector)
1010
1111add_test(NAME beman.inplace_vector.test COMMAND beman.inplace_vector.test)
1212
13- # constexpr test
14- add_executable(beman.inplace_vector.constexpr_test constexpr.test.cpp)
15- target_link_libraries(
16- beman.inplace_vector.constexpr_test
17- PRIVATE beman.inplace_vector
18- )
19- add_test(
20- NAME beman.inplace_vector.constexpr_test
21- COMMAND beman.inplace_vector.constexpr_test
22- )
13+ if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
14+ # constexpr test
15+ add_executable(beman.inplace_vector.constexpr_test constexpr.test.cpp)
16+ target_link_libraries(
17+ beman.inplace_vector.constexpr_test
18+ PRIVATE beman.inplace_vector
19+ )
20+ add_test(
21+ NAME beman.inplace_vector.constexpr_test
22+ COMMAND beman.inplace_vector.constexpr_test
23+ )
24+ else()
25+ message(WARNING "C++20 or later is not enabled, skipping constexpr test.")
26+ endif()
You can’t perform that action at this time.
0 commit comments