Start using c++20 in examples.

This commit is contained in:
ArthurSonzogni 2023-07-26 01:02:37 +02:00
parent b50f1fffc8
commit e5eb822d44
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C

View File

@ -8,7 +8,7 @@ function(example name)
target_link_libraries(ftxui_example_${name} PUBLIC ${DIRECTORY_LIB})
file(RELATIVE_PATH dir ${EXAMPLES_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
set_property(GLOBAL APPEND PROPERTY FTXUI::EXAMPLES ${dir}/${name})
target_compile_features(ftxui_example_${name} PRIVATE cxx_std_17)
target_compile_features(ftxui_example_${name} PRIVATE cxx_std_20)
endfunction(example)
add_subdirectory(component)