diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 330559fc6bc575ccb875483d62493b9a01d81c04..dbea321e13e773e69807817c1d31f8a96757acdb 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -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)