Unverified Commit 17401214 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

Move some compile definition into config file

parent 00011aea
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -103,7 +103,6 @@ set_property(CACHE RPC_PROTOCOL PROPERTY STRINGS
   "cci+verbs"
)
message(STATUS "RPC protocol: '${RPC_PROTOCOL}'")
add_definitions(-DRPC_PROTOCOL="${RPC_PROTOCOL}")

option(SYMLINK_SUPPORT "Compile with support for symlinks" ON)
if(SYMLINK_SUPPORT)
@@ -111,6 +110,8 @@ if(SYMLINK_SUPPORT)
endif()
message(STATUS "Symlink support: ${SYMLINK_SUPPORT}")

configure_file(include/global/configure.hpp.in include/global/configure.hpp)

# Imported target
add_library(RocksDB INTERFACE IMPORTED GLOBAL)
target_link_libraries(RocksDB
+3 −0
Original line number Diff line number Diff line
@@ -14,6 +14,9 @@
#ifndef GKFS_CONFIGURE_HPP
#define GKFS_CONFIGURE_HPP


#define RPC_PROTOCOL "@RPC_PROTOCOL@"

// Daemon path to auxiliary files
#define DAEMON_AUX_PATH "/tmp"