Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes policy CMP0135 warning for CMake >= 3.24 #898

Merged
merged 3 commits into from
Sep 12, 2022

Conversation

Crola1702
Copy link
Contributor

Signed-off-by: Crola1702 cristobal.arroyo@ekumenlabs.com

Reference build: https://ci.ros2.org/view/nightly/job/nightly_win_deb/2473/

This warning started appearing on new windows machines. It’s caused by a new CMake version (3.24) that expects this policy to be set.

This PR sets CMP0135 policy in CMakeLists.txt

CI launch:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
Copy link
Contributor

@Blast545 Blast545 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @Crola1702 please take a look to the linter errors before merging. Those are related to your changes.

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, let's change this to NEW policy to match what we are doing elsewhere.

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
@Crola1702
Copy link
Contributor Author

New CI_launcher builds with fixes and new behaviour:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@Crola1702 Crola1702 merged commit 1ea07e8 into rolling Sep 12, 2022
@delete-merged-branch delete-merged-branch bot deleted the Crola1702/fix-cmp0135-policy-warning branch September 12, 2022 15:48
@Crola1702
Copy link
Contributor Author

@Mergifyio backport humble

@mergify
Copy link

mergify bot commented Jan 3, 2023

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jan 3, 2023
* Fixes policy CMP0135 warning for CMake >= 3.24

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
(cherry picked from commit 1ea07e8)
clalancette pushed a commit that referenced this pull request Jan 3, 2023
* Fixes policy CMP0135 warning for CMake >= 3.24

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
(cherry picked from commit 1ea07e8)

Co-authored-by: Cristóbal Arroyo <69475004+Crola1702@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants