From e855022dcf852d55801da5a11264f55bd2f346fb Mon Sep 17 00:00:00 2001 From: Cedric Sirianni Date: Wed, 6 Nov 2024 10:22:59 -0500 Subject: [PATCH] Fix compilation error for default build instructions --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76ba69b..3e125fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ if(NOT nlohmann_json_POPULATED) add_subdirectory(${nlohmann_json_SOURCE_DIR} ${nlohmann_json_BINARY_DIR}) endif() -target_include_directories(faiss PUBLIC ${nlohmann_json_SOURCE_DIR}/include) +target_include_directories(faiss PRIVATE ${nlohmann_json_SOURCE_DIR}/include) find_package(ZLIB REQUIRED) target_link_libraries(faiss PUBLIC ${ZLIB_LIBRARIES})