From 977aae53d2c9827bc2bd5405b45c033c0f2f530c Mon Sep 17 00:00:00 2001 From: Muhammad <73486659+Mis1eader-dev@users.noreply.github.com> Date: Wed, 19 Jul 2023 10:39:30 -0700 Subject: [PATCH] Allow rocksdb library to be usable with CMake's `FetchContent` API (#11575) Summary: This adds proper support for using rocksdb with FetchContent, without this PR the user must include the following with their own `CMakeLists.txt` file: ```cmake include_directories(./build/_deps/rocksdb-src/include) ``` Pull Request resolved: https://github.com/facebook/rocksdb/pull/11575 Reviewed By: jowlyzhang Differential Revision: D47163520 Pulled By: ajkr fbshipit-source-id: a202dcf435ecc9dd8d51c88f90e98c04814721ca --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c803293ff0..4e30f6631e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1592,3 +1592,6 @@ option(WITH_BENCHMARK "build benchmark tests" OFF) if(WITH_BENCHMARK) add_subdirectory(${PROJECT_SOURCE_DIR}/microbench/) endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $)