Overwrite CMake configs by default #25
Open
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.
The default was set to False because we had made a manual change in
gz_cmake_vendor
that we didn't want to overwrite. However, this causes problems when we introduce new config files. For example, we recently added a.in
files to configure PYTHONPATH for each vendor package. Since the default is False, when the vendor package is created byrelease-tools/release.py
, it doesn't include the new config files.The solution here to programmatically achieve what was done manually in gz_cmake_vendor and set
overwrite_cmake_configs
to True by default.See gazebo-release/gz_utils_vendor#12 for a failing PR.
To test this run the following in
gz_utils_vendor
:Note that
<path to jetty gz-utils>
is the upstream Jettygz-utils
, not the vendor package.Before this PR, it will not generate the
pythonpath.dsv.in
file.You can also test this by running it on gz-cmake in the
kilted
branch, which corresponds to Gazebo Ionic.The generated
gz-cmake-config.cmake.in
will now haveYou can then build the workspace up-to
gz_utils_vendor
and test that the following CMake projectworks:
Before this PR, the generated config files would fail at
find_package(gz-cmake)