Skip to content

Commit

Permalink
Use C++20
Browse files Browse the repository at this point in the history
  • Loading branch information
Spartan322 committed Jul 21, 2024
1 parent 6379ab1 commit b770424
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit b770424

Please sign in to comment.