From 81c8b36180fae2397974de2b343f3f5450c2e247 Mon Sep 17 00:00:00 2001 From: Ramon Nou Date: Thu, 11 Jan 2024 11:46:35 +0100 Subject: [PATCH] Solving #define gekko error --- src/posix_file/CMakeLists.txt | 12 ++++++------ src/posix_file/posix_file/fs_plugin/fs_plugin.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/posix_file/CMakeLists.txt b/src/posix_file/CMakeLists.txt index cfbc971..f539920 100644 --- a/src/posix_file/CMakeLists.txt +++ b/src/posix_file/CMakeLists.txt @@ -25,13 +25,13 @@ add_library(posix_file STATIC) set(GEKKO_INCLUDES "") -if (GEKKOFS_PLUGIN) +if (GekkoFS_FOUND) set(GEKKO_INCLUDES posix_file/fs_plugin/gekko_plugin.hpp posix_file/fs_plugin/gekko_plugin.cpp) endif() -if (EXPAND_plugin) +if (Expand_FOUND) set(EXPAND_INCLUDES posix_file/fs_plugin/expand_plugin.hpp posix_file/fs_plugin/expand_plugin.cpp) endif() -if (HERCULES_plugin) +if (Hercules_FOUND) set(HERCULES_INCLUDES posix_file/fs_plugin/hercules_plugin.chpp posix_file/fs_plugin/hercules_plugin.cpp) endif() @@ -61,15 +61,15 @@ target_include_directories(posix_file INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) set_property(TARGET posix_file PROPERTY POSITION_INDEPENDENT_CODE ON) set(ADHOC "") -if (GEKKOFS_PLUGIN) +if (GekkoFS_FOUND) set(ADHOC ${ADHOC} GekkoFS::GekkoFS) endif() -if (EXPAND_PLUGIN) +if (Expand_FOUND) set(ADHOC ${ADHOC} Expand::Expand) endif() -if (HERCULES_PLUGIN) +if (Hercules_FOUND) set(ADHOC ${ADHOC} Hercules::Hercules) endif() diff --git a/src/posix_file/posix_file/fs_plugin/fs_plugin.cpp b/src/posix_file/posix_file/fs_plugin/fs_plugin.cpp index af02eea..7664aff 100644 --- a/src/posix_file/posix_file/fs_plugin/fs_plugin.cpp +++ b/src/posix_file/posix_file/fs_plugin/fs_plugin.cpp @@ -1,6 +1,6 @@ #include "fs_plugin.hpp" #include "posix_plugin.hpp" -#ifdef GEKKO_PLUGIN +#ifdef GEKKOFS_PLUGIN #include "gekko_plugin.hpp" #endif #ifdef HERCULES_PLUGIN @@ -18,7 +18,7 @@ FSPlugin::make_fs(type t) { switch(t) { case type::posix: return std::make_unique(); -#ifdef GEKKO_PLUGIN +#ifdef GEKKOFS_PLUGIN case type::gekkofs: return std::make_unique(); #endif -- GitLab