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

[14101] Upgrading CMake c++ standard management #2579

Merged
merged 13 commits into from
Jun 30, 2022
Merged

Conversation

MiguelBarro
Copy link
Contributor

@MiguelBarro MiguelBarro commented Mar 15, 2022

Description

This pull request deprecates #2084 that partially approach the subject missing:

  • CMake detection of the supported standards.
  • Backwards compatibility

All preprocessor workarounds to address non C++11 availability have been removed too.
FindAtomic module has been updated too to avoid deprecated CMake features.

Tests have been added for the updated CMake module.

This pull request must be merged after #2583 because the module update requires features available in CMake 3.16.

Relates to eProsima/Fast-CDR#122

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • N/A CMake Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added.
  • N/A CMake Any new/modified methods have been properly documented using Doxygen.
  • Fast DDS test suite has been run locally. In raspbian too 😎
  • Changes are ABI compatible.
  • Changes are API compatible.
  • Documentation builds and tests pass locally.
  • N/A New feature has been added to the versions.md file (if applicable).
  • N/A New feature has been documented/Current behavior is correctly described in the documentation.

Reviewer Checklist

  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

@MiguelBarro MiguelBarro self-assigned this Mar 15, 2022
@MiguelBarro MiguelBarro force-pushed the feature/cxx_force branch 4 times, most recently from 9f81c81 to 8dd1bab Compare March 16, 2022 08:11
@MiguelBarro
Copy link
Contributor Author

@richiprosima Please be so gentle to test Windows for me 😎

@MiguelBarro MiguelBarro force-pushed the feature/cxx_force branch 2 times, most recently from 8820ee1 to 570b09f Compare March 17, 2022 21:43
@MiguelCompany MiguelCompany added this to the v2.7.0 milestone Apr 11, 2022
Copy link
Contributor

@jsan-rt jsan-rt left a comment

Choose a reason for hiding this comment

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

Other than the, in my opinion, superfluous parameter most of the comments are just some nitpicks regarding inconsistent capitalization in comments. I've just outlined a few.

cmake/common/check_configuration.cmake Outdated Show resolved Hide resolved
cmake/common/check_configuration.cmake Show resolved Hide resolved
cmake/common/check_configuration.cmake Show resolved Hide resolved
cmake/modules/FindAtomic.cmake Outdated Show resolved Hide resolved
cmake/common/check_configuration.cmake Outdated Show resolved Hide resolved
cmake/common/check_configuration.cmake Outdated Show resolved Hide resolved
cmake/common/check_configuration.cmake Outdated Show resolved Hide resolved
cmake/common/check_configuration.cmake Outdated Show resolved Hide resolved
cmake/common/check_configuration.cmake Outdated Show resolved Hide resolved
cmake/modules/FindAtomic.cmake Outdated Show resolved Hide resolved
Miguel Barro added 12 commits June 29, 2022 12:43
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
…lity.

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@jsan-rt
Copy link
Contributor

jsan-rt commented Jun 29, 2022

@richiprosima please test this again

jsan-rt
jsan-rt previously approved these changes Jun 29, 2022
@jsan-rt jsan-rt self-requested a review June 29, 2022 20:06
@jsan-rt jsan-rt dismissed their stale review June 29, 2022 20:06

Mac CI failing. Needs further testing.

@MiguelCompany MiguelCompany added the no-test Skip CI tests if PR marked with this label label Jun 30, 2022
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@MiguelBarro
Copy link
Contributor Author

@richiprosima please test Mac. Let's see what happens with the examples CMake.

@MiguelBarro
Copy link
Contributor Author

The examples issue is fixed

@MiguelCompany
Copy link
Member

@richiprosima Please test this to check it builds in all platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-test Skip CI tests if PR marked with this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants