From 53540e40d8d93c1161a682511f6a84f6ff9d3fab Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 15 Jul 2016 18:47:57 +0100 Subject: [PATCH] Fix incredis.hpp not found error. --- CMakeLists.txt | 4 +++- src/backends/redis/CMakeLists.txt | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 18567b4..d5565c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,11 +121,13 @@ if (NOT DINDEXER_CXX11_ABI AND CMAKE_CXX_COMPILER_VERSION_MAJOR EQUAL "5") ) endif() -list(FIND DINDEXER_ENABLED_BACKENDS "redis" redis_found_index) +string(REPLACE "," ";" backend_list "${DINDEXER_ENABLED_BACKENDS}") +list(FIND backend_list "redis" redis_found_index) if (${redis_found_index} GREATER -1) set(DINDEXER_WITH_REDIS ON) endif() unset(redis_found_index) +unset(backend_list) #Libraries add_subdirectory(src/pq) diff --git a/src/backends/redis/CMakeLists.txt b/src/backends/redis/CMakeLists.txt index 538504a..a6f982c 100644 --- a/src/backends/redis/CMakeLists.txt +++ b/src/backends/redis/CMakeLists.txt @@ -16,7 +16,6 @@ target_include_directories(${PROJECT_NAME} SYSTEM ) target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_BINARY_DIR} - PUBLIC ${CMAKE_SOURCE_DIR}/src/incredis ) target_link_libraries(${PROJECT_NAME}