Skip to content

Commit 5628d94

Browse files
ruslorbsheth
authored andcommitted
Fix cross-compiling issue
1 parent 6303bb5 commit 5628d94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/protobuf-module.cmake.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,13 @@ _protobuf_find_libraries(Protobuf protobuf)
132132
# The Protobuf Lite library
133133
_protobuf_find_libraries(Protobuf_LITE protobuf-lite)
134134

135+
if(@protobuf_BUILD_PROTOC_BINARIES@)
136+
135137
# The Protobuf Protoc Library
136138
_protobuf_find_libraries(Protobuf_PROTOC protoc)
137139

140+
endif()
141+
138142
if(UNIX)
139143
_protobuf_find_threads()
140144
endif()

0 commit comments

Comments
 (0)