diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 6fe3d24..b6fb5a6 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -10,5 +10,5 @@ FetchContent_MakeAvailable(nanobench) add_executable(lauf_benchmark_chunk) target_sources(lauf_benchmark_chunk PRIVATE chunk.cpp) target_link_libraries(lauf_benchmark_chunk PRIVATE foonathan::lauf::core nanobench) -target_compile_features(lauf_benchmark_chunk PRIVATE cxx_std_17) +target_compile_features(lauf_benchmark_chunk PRIVATE cxx_std_20) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1545095..90a8281 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -29,7 +29,7 @@ endif() #=== Core library target ===# add_library(lauf_core) add_library(foonathan::lauf::core ALIAS lauf_core) -target_compile_features(lauf_core PRIVATE cxx_std_17) +target_compile_features(lauf_core PRIVATE cxx_std_20) target_include_directories(lauf_core SYSTEM INTERFACE ../include) target_include_directories(lauf_core PRIVATE ../include .) target_link_libraries(lauf_core PRIVATE lauf_warnings foonathan::lexy) @@ -133,7 +133,7 @@ target_sources(lauf_text PRIVATE ${src_dir}/frontend/text.cpp) add_library(lauf_qbe) add_library(foonathan::lauf::qbe ALIAS lauf_qbe) target_include_directories(lauf_qbe PRIVATE .) -target_compile_features(lauf_qbe PRIVATE cxx_std_17) +target_compile_features(lauf_qbe PRIVATE cxx_std_20) target_link_libraries(lauf_qbe PRIVATE lauf_warnings lauf_core) target_sources(lauf_qbe PUBLIC ${include_dir}/backend/qbe.h) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fe8d44d..6376517 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,7 +10,7 @@ FetchContent_MakeAvailable(doctest) add_library(lauf_test_base ${CMAKE_CURRENT_SOURCE_DIR}/doctest_main.cpp) target_link_libraries(lauf_test_base PUBLIC foonathan::lauf lauf_warnings doctest) target_include_directories(lauf_test_base PUBLIC ../src) -target_compile_features(lauf_test_base PUBLIC cxx_std_17) +target_compile_features(lauf_test_base PUBLIC cxx_std_20) #=== Interface compile check target. ===# add_library(lauf_interface_check OBJECT all.c) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index c01b4db..f527d1e 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -3,11 +3,11 @@ add_executable(lauf_tool_interpreter interpreter.cpp) target_link_libraries(lauf_tool_interpreter PRIVATE foonathan::lauf::core foonathan::lauf::text lauf_warnings) -target_compile_features(lauf_tool_interpreter PRIVATE cxx_std_17) +target_compile_features(lauf_tool_interpreter PRIVATE cxx_std_20) set_target_properties(lauf_tool_interpreter PROPERTIES OUTPUT_NAME "lauf") add_executable(lauf_tool_qbe qbe.cpp) target_link_libraries(lauf_tool_qbe PRIVATE foonathan::lauf::core foonathan::lauf::text foonathan::lauf::qbe lauf_warnings) -target_compile_features(lauf_tool_qbe PRIVATE cxx_std_17) +target_compile_features(lauf_tool_qbe PRIVATE cxx_std_20) set_target_properties(lauf_tool_qbe PROPERTIES OUTPUT_NAME "lauf-qbe")