diff options
author | dimitri staessens <[email protected]> | 2017-09-13 18:43:06 +0000 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-09-13 18:43:06 +0000 |
commit | 07a2d315205fccf42e891e2bb46db44401b29153 (patch) | |
tree | 963de29dbc93931f9844269e53beea27568736d4 /CMakeLists.txt | |
parent | 184f6d40e70895fefff25c8b72f6230781a030bf (diff) | |
parent | 8c5557af6ff55b0dd806aa5205be7a11e92db990 (diff) | |
download | ouroboros-07a2d315205fccf42e891e2bb46db44401b29153.tar.gz ouroboros-07a2d315205fccf42e891e2bb46db44401b29153.zip |
Merged in dstaesse/ouroboros/be-build (pull request #592)
build: Clean up output with missing ProtobufC
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
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) |