diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b4b918..b8584fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Changelog current (development) --------------------- +4.0.0 +----- + ### DOM - Feature: more styles: - `strikethrough` diff --git a/CMakeLists.txt b/CMakeLists.txt index adb4ec5..e58a9be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11) project(ftxui LANGUAGES CXX - VERSION 3.0.0 + VERSION 4.0.0 ) option(FTXUI_BUILD_DOCS "Set to ON to build docs" ON) @@ -131,12 +131,17 @@ target_link_libraries(dom PUBLIC screen ) -find_package(Threads) target_link_libraries(component PUBLIC dom - PUBLIC Threads::Threads ) +if (NOT EMSCRIPTEN) + find_package(Threads) + target_link_libraries(component + PUBLIC Threads::Threads + ) +endif() + include(cmake/ftxui_set_options.cmake) ftxui_set_options(screen) ftxui_set_options(dom) diff --git a/cmake/ftxui_set_options.cmake b/cmake/ftxui_set_options.cmake index 1294e7d..d608980 100644 --- a/cmake/ftxui_set_options.cmake +++ b/cmake/ftxui_set_options.cmake @@ -44,7 +44,6 @@ function(ftxui_set_options library) ) # C++17 is used. We require fold expression at least. - target_compile_features(${library} PUBLIC cxx_std_20) set_target_properties(${library} PROPERTIES CXX_STANDARD 17 CXX_EXTENSIONS OFF diff --git a/include/ftxui/screen/screen.hpp b/include/ftxui/screen/screen.hpp index b6e82fc..d8a5329 100644 --- a/include/ftxui/screen/screen.hpp +++ b/include/ftxui/screen/screen.hpp @@ -2,7 +2,7 @@ #define FTXUI_SCREEN_SCREEN_HPP #include -#include // for allocator, string, basic_string +#include // for string, allocator, basic_string #include // for vector #include "ftxui/screen/box.hpp" // for Box diff --git a/src/ftxui/component/animation.cpp b/src/ftxui/component/animation.cpp index 1a0a501..1a576e7 100644 --- a/src/ftxui/component/animation.cpp +++ b/src/ftxui/component/animation.cpp @@ -1,5 +1,4 @@ #include // for sin, pow, sqrt, cos -#include // for operator<=, operator>=, partial_ordering #include // for ratio #include // for move diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp index f9db0a4..46e2b5b 100644 --- a/src/ftxui/component/screen_interactive.cpp +++ b/src/ftxui/component/screen_interactive.cpp @@ -1,7 +1,6 @@ #include // for copy, max, min #include // for array -#include // for operator-, milliseconds, operator<=>, duration, common_type<>::type, time_point -#include // for operator>=, strong_ordering +#include // for operator-, milliseconds, operator>=, duration, common_type<>::type, time_point #include // for signal, SIGTSTP, SIGABRT, SIGWINCH, raise, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM, __sighandler_t, size_t #include // for fileno, stdin #include // for Task, Closure, AnimationTask