File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 10
10
* Added support in the C++ API for deserializing set AuxData into unordered_sets.
11
11
* Fixed issue causing compile errors when building with Boost 1.86+.
12
12
* Building the C++ API now requires Boost 1.68 or later.
13
+ * Fixed an obscure build error caused by a missing protobuf compiler. CMake now
14
+ explicitly checks for the protobuf compiler before generating build files.
13
15
14
16
# 2.2.0
15
17
Original file line number Diff line number Diff line change @@ -427,6 +427,16 @@ if(CL_API)
427
427
else ()
428
428
find_package (Protobuf 3.0.0 REQUIRED )
429
429
endif ()
430
+ if (NOT Protobuf_PROTOC_EXECUTABLE )
431
+ # find_package only fails if the protobuf libraries or headers cannot be
432
+ # found. It does not treat failing to find the protobuf compiler as an error,
433
+ # so we do that explicitly here.
434
+ message (
435
+ FATAL_ERROR
436
+ "Could not find Protobuf compiler 'protoc'. Please make sure the "
437
+ "Protobuf compiler is installed."
438
+ )
439
+ endif ()
430
440
431
441
if (Protobuf_VERSION VERSION_LESS 3.2 )
432
442
add_definitions (-DPROTOBUF_SET_BYTES_LIMIT )
You can’t perform that action at this time.
0 commit comments