summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-07-26 13:37:45 +0200
committerSander Vrijders <[email protected]>2016-07-26 14:37:20 +0200
commit3b1f3f57587bdb2b99934417033b24739fc0182d (patch)
tree5a823bd04ccd276b69c7faa17c517f8819cb6dd9 /cmake
parentbee74baa8fa8ffa71dbb659496bc88df3e8ce6a5 (diff)
downloadouroboros-3b1f3f57587bdb2b99934417033b24739fc0182d.tar.gz
ouroboros-3b1f3f57587bdb2b99934417033b24739fc0182d.zip
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.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindProtobufC.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/FindProtobufC.cmake b/cmake/FindProtobufC.cmake
index bfa50110..8c1f23db 100644
--- a/cmake/FindProtobufC.cmake
+++ b/cmake/FindProtobufC.cmake
@@ -70,3 +70,5 @@ mark_as_advanced(PROTOBUF_PROTOC_C_EXECUTABLE)
find_package(PackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ProtobufC DEFAULT_MSG
PROTOBUF_C_LIBRARY PROTOBUF_C_INCLUDE_DIR PROTOBUF_PROTOC_C_EXECUTABLE)
+
+set(PROTOBUF_C_INCLUDE_DIRS ${PROTOBUF_C_INCLUDE_DIR})