From 6d72d12575c3fa764f27b91985c5a5c79bc4ccd6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Jul 2015 16:18:35 -0700 Subject: Set cmake include directories on library targets. cmake targets that depend on these libraries will automatically have these include directories. --- cmake/libprotobuf.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/libprotobuf.cmake') diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake index 53ba3d3e..31fb1fb2 100644 --- a/cmake/libprotobuf.cmake +++ b/cmake/libprotobuf.cmake @@ -54,6 +54,7 @@ set(libprotobuf_files add_library(libprotobuf ${libprotobuf_lite_files} ${libprotobuf_files}) target_link_libraries(libprotobuf ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES}) +target_include_directories(libprotobuf PUBLIC ${protobuf_source_dir}/src) set_target_properties(libprotobuf PROPERTIES COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS OUTPUT_NAME ${LIB_PREFIX}protobuf) -- cgit v1.2.3