From c7715733bfea95720f4e590678fb7c84f61c1fd4 Mon Sep 17 00:00:00 2001 From: arvidn Date: Tue, 24 Oct 2017 22:21:44 +0200 Subject: [PATCH] make sure dependent targets get the include directory added correctly --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d485e1f..758e59d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -27,6 +27,7 @@ add_library(cppkafka ${CPPKAFKA_LIBRARY_TYPE} ${SOURCES}) set_target_properties(cppkafka PROPERTIES VERSION ${CPPKAFKA_VERSION} SOVERSION ${CPPKAFKA_VERSION}) target_link_libraries(cppkafka ${RDKAFKA_LIBRARY}) +target_include_directories(cppkafka PUBLIC ${PROJECT_SOURCE_DIR}/include) install( TARGETS cppkafka