Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7fc1d62

Browse files
ruslohjmallon
authored andcommittedOct 27, 2019
Fix cross-compiling issue
1 parent c74f5b0 commit 7fc1d62

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)
Please sign in to comment.