Commit dc6b1ad5 authored by Elvin Sindrilaru's avatar Elvin Sindrilaru
Browse files

CMAKE: Avoid rocksdb dependency in PACKAGEONLY mode

parent 70d2a479
Pipeline #3452568 failed with stages
in 79 minutes and 40 seconds
......@@ -97,27 +97,27 @@ execute_process(
OUTPUT_VARIABLE CANONICAL_ROCKSDB_PATH
)
set(ROCKSDB_ROOT_DIR ${CANONICAL_ROCKSDB_PATH} CACHE STRING "RocksDB cache dir")
if( (NOT BUILD_ROCKSDB) AND (NOT ROCKSDB_FOUND) )
# determine if we need to build rocksdb
find_package(RocksDB)
if( (NOT ROCKSDB_FOUND) )
set(BUILD_ROCKSDB ON)
endif()
endif()
if(BUILD_ROCKSDB)
include(buildRocksDB)
buildRocksDB()
endif()
#-------------------------------------------------------------------------------
# Search for dependencies
#-------------------------------------------------------------------------------
option(PACKAGEONLY "Build without dependencies" OFF)
if(NOT PACKAGEONLY)
set(ROCKSDB_ROOT_DIR ${CANONICAL_ROCKSDB_PATH} CACHE STRING "RocksDB cache dir")
if( (NOT BUILD_ROCKSDB) AND (NOT ROCKSDB_FOUND) )
# determine if we need to build rocksdb
find_package(RocksDB)
if( (NOT ROCKSDB_FOUND) )
set(BUILD_ROCKSDB ON)
endif()
endif()
if(BUILD_ROCKSDB)
include(buildRocksDB)
buildRocksDB()
endif()
find_package (Threads)
find_package(XRootD REQUIRED)
find_package(uuid REQUIRED)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment