]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/kv/CMakeLists.txt: force rocksdb/include to first include directory 11194/head
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 22 Sep 2016 12:19:09 +0000 (14:19 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 22 Sep 2016 12:19:09 +0000 (14:19 +0200)
 - 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 <wjw@digiware.nl>
src/kv/CMakeLists.txt

index 9bf86be0edb32d924b8a2717b179044b9e2a1e51..1a502a9b93e4bb63992cd28d01514f10e0e42541 100644 (file)
@@ -5,8 +5,8 @@ set(kv_srcs
   RocksDBStore.cc)
 add_library(kv_objs OBJECT ${kv_srcs})
 add_library(kv STATIC $<TARGET_OBJECTS:kv_objs>)
-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.