Commit 81c8b361 authored by Ramon Nou's avatar Ramon Nou
Browse files

Solving #define gekko error

parent 1e969317
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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()

+2 −2
Original line number Diff line number Diff line
#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<cargo::posix_plugin>();
#ifdef GEKKO_PLUGIN
#ifdef GEKKOFS_PLUGIN
        case type::gekkofs:
            return std::make_unique<cargo::gekko_plugin>();
#endif