Commit 8a48d35
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 955a807 commit 8a48d35
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