From 3b1f3f57587bdb2b99934417033b24739fc0182d Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 26 Jul 2016 13:37:45 +0200 Subject: build: Fix wrong inclusion The protobuf include directory was not being correctly handed to the compiler when building. Now the include directory is added project-wide. And the protobuf package is searched for only once. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7404eeb4..1918165c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,6 +59,9 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) set(LOG_DIR "var/log/ouroboros") install(DIRECTORY DESTINATION ${LOG_DIR}) +find_package(ProtobufC REQUIRED) +include_directories(${PROTOBUF_C_INCLUDE_DIRS}) + add_subdirectory(src) add_subdirectory(include) -- cgit v1.2.3