Add CMake options to support cross-compilation #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds two CMake options:
INSTALL_IGN_MSGS_GEN_EXECUTABLE
if this option is enabled, the ign_msgs_gen protobuf executable plugin is also installed, so that this option can be enabled in host builds to permit cross-compilation builds to use it to generate the messages. As this executable is not side by side installable with other ignition-msgs installations with different major versions and this is an advanced option meant just for packaging, by default it is set to OFF.IGN_MSGS_GEN_EXECUTABLE
: this string variable can be set to have ign-msgs use a ign_msgs_gen executable plugin that was not build by the project, to enable cross-compilation scenarios.Fix #34 .