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

Update cmake minimum version to 2.8.12 #61

Merged

Conversation

brawner
Copy link
Contributor

@brawner brawner commented Nov 23, 2020

In the most recent release of cmake (3.19), they have started deprecating cmake versions < 2.8.12.

Example cmake warnings
https://ci.ros2.org/view/nightly/job/nightly_win_rel/1760/cmake/

Build all of ros2, testing up to rcutils

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

Signed-off-by: Stephen Brawner brawner@gmail.com

@sloretz
Copy link

sloretz commented Nov 24, 2020

@brawner
Copy link
Contributor Author

brawner commented Nov 24, 2020

CI jobs

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

This PR didn't appear to resolve the issue yet. Perhaps we'll have to wait until googletest is patched upstream. I'm not sure, it will take a bit more fussing.

@brawner
Copy link
Contributor Author

brawner commented Nov 24, 2020

Trying to set the deprecated policy manually

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

@brawner
Copy link
Contributor Author

brawner commented Nov 24, 2020

Trying again:
Windows only Build Status

Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner brawner force-pushed the brawner/testing-tools-cmake-minimum-version branch from 65f7012 to 49750d3 Compare November 24, 2020 23:13
@brawner
Copy link
Contributor Author

brawner commented Nov 24, 2020

Rebasing onto master and trying a max cmake version as well.
Build Status

@brawner brawner force-pushed the brawner/testing-tools-cmake-minimum-version branch from 0ba7c31 to 0f4a54e Compare November 24, 2020 23:54
@brawner
Copy link
Contributor Author

brawner commented Nov 24, 2020

Creating a manually patched archive
Build Status

@brawner brawner force-pushed the brawner/testing-tools-cmake-minimum-version branch from 0f4a54e to 40fc8e9 Compare November 25, 2020 00:01
Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner brawner force-pushed the brawner/testing-tools-cmake-minimum-version branch from 40fc8e9 to 56e9891 Compare November 25, 2020 00:10
@brawner
Copy link
Contributor Author

brawner commented Nov 25, 2020

Just setting cmake_minimum_required explicitly, no fancy stuff
Build Status

@brawner
Copy link
Contributor Author

brawner commented Nov 25, 2020

An upstream PR to handle this is in the works google/googletest#3094

@wjwwood
Copy link
Member

wjwwood commented Nov 25, 2020

@wjwwood
Copy link
Member

wjwwood commented Nov 25, 2020

Otherwise we may step on others and/or confuse people if upstream starts using x.y.z.a versioning.

@brawner
Copy link
Contributor Author

brawner commented Nov 25, 2020

Ok, I think I have the patch version updated correctly.

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

@brawner brawner force-pushed the brawner/testing-tools-cmake-minimum-version branch from 3ec6e93 to 56e9891 Compare November 25, 2020 18:02
@brawner
Copy link
Contributor Author

brawner commented Nov 25, 2020

Removing last commit

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

Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

Thanks for updating it again.

Sorry!

@wjwwood wjwwood merged commit 129e75f into osrf:master Nov 26, 2020
chapulina pushed a commit that referenced this pull request Apr 21, 2021
* Update cmake minimum version to 2.8.12

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Try setting policy explicitly

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Trying this

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Manually patching archive

Signed-off-by: Stephen Brawner <brawner@gmail.com>
wjwwood pushed a commit that referenced this pull request Apr 26, 2021
* Update cmake minimum version to 2.8.12 (#61)

* Update cmake minimum version to 2.8.12

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Try setting policy explicitly

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Trying this

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Manually patching archive

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Use VERSION_GREATER instead of GREATER

Signed-off-by: Louise Poubel <louise@openrobotics.org>

Co-authored-by: Stephen Brawner <brawner@gmail.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.

None yet

3 participants