From 091801a077b823b9bcd913fa611b28ceeb82f84d Mon Sep 17 00:00:00 2001 From: Yohan Boujon Date: Tue, 6 May 2025 23:29:52 +0200 Subject: [PATCH] Fixed compilation under linux. --- dependencies.cmake | 11 +++-------- include/logger.h | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/dependencies.cmake b/dependencies.cmake index 6fef553..3232ca0 100644 --- a/dependencies.cmake +++ b/dependencies.cmake @@ -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" -) \ No newline at end of file +) diff --git a/include/logger.h b/include/logger.h index 068da37..c862b9e 100644 --- a/include/logger.h +++ b/include/logger.h @@ -4,6 +4,7 @@ #include #include #include +#include enum class LoggerType : uint8_t {