Skip to content

Commit ada7ef2

Browse files
committed
[WIP] CMake: Fix error locating protoc without Hunter
Error was: | CMake Error at cmake/functions.cmake:52 (message): | Protobuf_PROTOC_EXECUTABLE is empty | Call Stack (most recent call first): | cmake/functions.cmake:96 (compile_proto_to_cpp) | src/crypto/protobuf/CMakeLists.txt:6 (add_proto_library)
1 parent 06c00f7 commit ada7ef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/functions.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function(add_flag flag)
4545
endfunction()
4646

4747
function(compile_proto_to_cpp PROTO_LIBRARY_NAME PB_H PB_CC PROTO)
48-
get_target_property(Protobuf_INCLUDE_DIR protobuf::libprotobuf INTERFACE_INCLUDE_DIRECTORIES)
49-
get_target_property(Protobuf_PROTOC_EXECUTABLE protobuf::protoc IMPORTED_LOCATION_RELEASE)
48+
#get_target_property(Protobuf_INCLUDE_DIR protobuf::libprotobuf INTERFACE_INCLUDE_DIRECTORIES)
49+
#get_target_property(Protobuf_PROTOC_EXECUTABLE protobuf::protoc IMPORTED_LOCATION_RELEASE)
5050

5151
if (NOT Protobuf_PROTOC_EXECUTABLE)
5252
message(FATAL_ERROR "Protobuf_PROTOC_EXECUTABLE is empty")

0 commit comments

Comments
 (0)