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

Allow project wide default setting for exceptions and rtti #118

Merged

Conversation

woodfell
Copy link
Contributor

@woodfell woodfell commented Jul 8, 2022

We have traditionally disabled exceptions and rtti by default across all repositories, instead relying on individual targets to turn them on as and when required.

There has come a need to have exceptions and RTTI take a default value on a project wide basis, to be controlled by some other build time config option.

This PR allows a cmake project to set the variable ${PROJECT_NAME}_EXCEPTIONS_DEFAULT and ${PROJECT_NAME}_RTTI_DEFAULT to control. An individual target may still specify EXCEPTIONS, NO_EXCEPTIONS, RTTI, NO_RTTI is there is an overriding need, this just allows a project to set a default value for all target within.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 8, 2022

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

@woodfell woodfell merged commit 05a6833 into master Jul 8, 2022
@woodfell woodfell deleted the woodfell/allow_project_default_for_exceptions_and_rtti branch July 8, 2022 04:43
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.

2 participants