summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-09-13 18:43:06 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-09-13 18:43:06 +0000
commit07a2d315205fccf42e891e2bb46db44401b29153 (patch)
tree963de29dbc93931f9844269e53beea27568736d4
parent184f6d40e70895fefff25c8b72f6230781a030bf (diff)
parent8c5557af6ff55b0dd806aa5205be7a11e92db990 (diff)
downloadouroboros-07a2d315205fccf42e891e2bb46db44401b29153.tar.gz
ouroboros-07a2d315205fccf42e891e2bb46db44401b29153.zip
Merged in dstaesse/ouroboros/be-build (pull request #592)
build: Clean up output with missing ProtobufC
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 642c391c..624950bc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,7 +85,12 @@ endif ()
enable_testing()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
-find_package(ProtobufC REQUIRED QUIET)
+find_package(ProtobufC QUIET)
+if (NOT (PROTOBUF_C_INCLUDE_DIRS AND PROTOBUF_C_LIBRARY
+ AND PROTOBUF_PROTOC_C_EXECUTABLE))
+ message(FATAL_ERROR "Protobuf C compiler required but not found. "
+ "Please install Google Protocol Buffers.")
+endif ()
include_directories(${PROTOBUF_C_INCLUDE_DIRS})
add_subdirectory(include)