Commit 101037d2 authored by Ramon Nou's avatar Ramon Nou
Browse files

enable locking option on cmake

parent 190905ec
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -307,6 +307,14 @@ gkfs_define_option(
    DESCRIPTION "Compile with lstat usage in path resolve"
)

## external link support
gkfs_define_option(
    GKFS_ENABLE_LOCKING
    HELP_TEXT "Enable support for locking with fcntl the underlying file descriptor"
    DEFAULT_VALUE OFF
    DESCRIPTION "It can be very wrong"
)


################################################################################
# Options and variables that control how GekkoFS behaves internally
+4 −0
Original line number Diff line number Diff line
@@ -316,6 +316,10 @@ if (GKFS_ENABLE_PROMETHEUS)
    add_definitions(-DGKFS_ENABLE_PROMETHEUS)
endif ()

if (GKFS_ENABLE_LOCKING)
    add_definitions(-DENABLE_LOCKING)
endif ()

configure_file(include/common/cmake_configure.hpp.in include/common/cmake_configure.hpp)

if (GKFS_ENABLE_CLIENT_LOG)