From 2757209d77584a74ccf21a929104cff753deecd6 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Thu, 22 Sep 2016 14:19:09 +0200 Subject: [PATCH] src/kv/CMakeLists.txt: force rocksdb/include to first include directory - Otherwise on FreeBSD older packages could be used for include this then can result to missing declared functions because includes and libs are out of sync Signed-off-by: Willem Jan Withagen --- src/kv/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kv/CMakeLists.txt b/src/kv/CMakeLists.txt index 9bf86be0edb32..1a502a9b93e4b 100644 --- a/src/kv/CMakeLists.txt +++ b/src/kv/CMakeLists.txt @@ -5,8 +5,8 @@ set(kv_srcs RocksDBStore.cc) add_library(kv_objs OBJECT ${kv_srcs}) add_library(kv STATIC $) -target_include_directories(kv_objs PUBLIC ${ROCKSDB_INCLUDE_DIR}) -target_include_directories(kv PUBLIC ${ROCKSDB_INCLUDE_DIR}) +target_include_directories(kv_objs BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR}) +target_include_directories(kv BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR}) target_link_libraries(kv ${LEVELDB_LIBRARIES} rocksdb snappy z) # rocksdb detects bzlib and lz4 in its Makefile, which forces us to do the same. -- 2.39.5