Fixed compilation under linux.

This commit is contained in:
Yohan Boujon 2025-05-06 23:29:52 +02:00
parent 9c0343d6e7
commit 091801a077
2 changed files with 4 additions and 8 deletions

View file

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 3.22) #FTXUI asks for CMake 3.22 and C++ 17
include(FetchContent)
FetchContent_Declare(ftxui
@ -7,11 +5,8 @@ FetchContent_Declare(ftxui
GIT_TAG v6.0.2
)
FetchContent_GetProperties(ftxui)
if(NOT ftxui_POPULATED)
FetchContent_Populate(ftxui)
add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
FetchContent_MakeAvailable(ftxui)
set(FTXUI_INCLUDE_DIRS
"${ftxui_SOURCE_DIR}/include"
)
)

View file

@ -4,6 +4,7 @@
#include <string>
#include <vector>
#include <ostream>
#include <cstdint>
enum class LoggerType : uint8_t
{