Skip to content

Commit c850bbc

Browse files
committed
fix(modules): make sure all consumers of todaygraphql use C++20
1 parent c06996c commit c850bbc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

samples/today/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,28 @@ endif()
2929

3030
# sample
3131
add_executable(sample sample.cpp)
32+
target_compile_features(sample PUBLIC cxx_std_20)
3233
target_link_libraries(sample PRIVATE
3334
todaygraphql
3435
graphqljson)
3536

3637
# sample_nointrospection
3738
add_executable(sample_nointrospection sample.cpp)
39+
target_compile_features(sample_nointrospection PUBLIC cxx_std_20)
3840
target_link_libraries(sample_nointrospection PRIVATE
3941
todaygraphql_nointrospection
4042
graphqljson)
4143

4244
# benchmark
4345
add_executable(benchmark benchmark.cpp)
46+
target_compile_features(benchmark PUBLIC cxx_std_20)
4447
target_link_libraries(benchmark PRIVATE
4548
todaygraphql
4649
graphqljson)
4750

4851
# benchmark_nointrospection
4952
add_executable(benchmark_nointrospection benchmark.cpp)
53+
target_compile_features(benchmark_nointrospection PUBLIC cxx_std_20)
5054
target_link_libraries(benchmark_nointrospection PRIVATE
5155
todaygraphql_nointrospection
5256
graphqljson)

test/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ add_bigobj_flag(validation_tests)
1515
gtest_add_tests(TARGET validation_tests)
1616

1717
add_executable(today_tests TodayTests.cpp)
18+
target_compile_features(today_tests PRIVATE cxx_std_20)
1819
target_link_libraries(today_tests PRIVATE
1920
todaygraphql
2021
graphqljson
@@ -24,6 +25,7 @@ add_bigobj_flag(today_tests)
2425
gtest_add_tests(TARGET today_tests)
2526

2627
add_executable(coroutine_tests CoroutineTests.cpp)
28+
target_compile_features(coroutine_tests PRIVATE cxx_std_20)
2729
target_link_libraries(coroutine_tests PRIVATE
2830
todaygraphql
2931
graphqljson
@@ -32,6 +34,7 @@ target_link_libraries(coroutine_tests PRIVATE
3234
gtest_add_tests(TARGET coroutine_tests)
3335

3436
add_executable(client_tests ClientTests.cpp)
37+
target_compile_features(client_tests PRIVATE cxx_std_20)
3538
target_link_libraries(client_tests PRIVATE
3639
todaygraphql
3740
query_client
@@ -43,6 +46,7 @@ add_bigobj_flag(client_tests)
4346
gtest_add_tests(TARGET client_tests)
4447

4548
add_executable(nointrospection_tests NoIntrospectionTests.cpp)
49+
target_compile_features(nointrospection_tests PRIVATE cxx_std_20)
4650
target_link_libraries(nointrospection_tests PRIVATE
4751
todaygraphql_nointrospection
4852
graphqljson
@@ -52,6 +56,7 @@ add_bigobj_flag(nointrospection_tests)
5256
gtest_add_tests(TARGET nointrospection_tests)
5357

5458
add_executable(argument_tests ArgumentTests.cpp)
59+
target_compile_features(argument_tests PRIVATE cxx_std_20)
5560
target_link_libraries(argument_tests PRIVATE
5661
todaygraphql
5762
graphqljson

0 commit comments

Comments
 (0)