Skip to content

Commit c29b22f

Browse files
ruslorahulshethsc
authored andcommitted
Fix cross-compiling issue
1 parent d7ceffb commit c29b22f

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
@@ -136,9 +136,13 @@ _protobuf_find_libraries(Protobuf protobuf)
136136
# The Protobuf Lite library
137137
_protobuf_find_libraries(Protobuf_LITE protobuf-lite)
138138

139+
if(@protobuf_BUILD_PROTOC_BINARIES@)
140+
139141
# The Protobuf Protoc Library
140142
_protobuf_find_libraries(Protobuf_PROTOC protoc)
141143

144+
endif()
145+
142146
if(UNIX)
143147
_protobuf_find_threads()
144148
endif()

0 commit comments

Comments
 (0)