Commit 5c7e514
committed
Allow cross-compilation with protobuf
The upstream config module from protobuf always declares targets
for the protobuf library and protoc of the same platform. This means
one of the two is always wrong, as protoc needs to be run on the
build machine, but the library must be linked for the "host" platform.
A small change in the CMake scaffold allows the user to pass
`-DPROTOBUF_PROTOC_EXECUTABLE=<path/to/protoc>` to cmake when creating
the build tree.1 parent f30ab92 commit 5c7e514
1 file changed
+13
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
430 | 435 | | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | 436 | | |
435 | | - | |
436 | 437 | | |
437 | 438 | | |
438 | 439 | | |
| |||
0 commit comments