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}