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

[Meta]: Modernized setting the C++ version in CMake #340

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

ad3154
Copy link
Member

@ad3154 ad3154 commented Oct 28, 2023

  • Replaced setting CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED with set_target_properties to avoid unintentionally affecting top level consuming projects.

This seems like it's the more modern way of setting the version so as to not affect the global C++ settings in a consuming project.

@ad3154 ad3154 added the enhancement New feature or request label Oct 28, 2023
@ad3154 ad3154 self-assigned this Oct 28, 2023
Replaced setting CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED with
set_target_properties to avoid unintentionally affecting top level
consuming projects.
@ad3154 ad3154 force-pushed the ca-adg/target-compile-options branch from b7c96be to a7b40a3 Compare October 28, 2023 00:48
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ad3154 ad3154 requested a review from GwnDaan October 28, 2023 01:04
@ad3154 ad3154 merged commit 3db7e80 into main Oct 28, 2023
7 checks passed
@ad3154 ad3154 deleted the ca-adg/target-compile-options branch October 28, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants