diff --git a/src/posix_file/CMakeLists.txt b/src/posix_file/CMakeLists.txt index cfbc9718693dd4202bda6335b4251f0036def678..f539920fc695a74d3a073f2e39a8bb5aea4d6c19 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 af02eeaeaf193b1ec9872add2bc1aee2447d4e74..7664aff90f1a4a2c3d58d3487ade80610992b86f 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