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

{cmake} Use the same compiler warnings as godot #1008

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

asmaloney
Copy link
Contributor

@asmaloney asmaloney commented Jan 19, 2023

Turns on compiler warnings based on the SConstruct file in godot.

Also adds GODOT_CPP_WARNING_AS_ERROR option to treat warnings as errors. This is turned ON when building godot-cpp on its own (e.g. CI), but defaults to OFF if godot-cpp is being included in another project.

(CMake part of #999)

@asmaloney asmaloney force-pushed the cmake-compiler-warnings branch from e7cce7b to 42834c0 Compare January 19, 2023 17:22
@asmaloney asmaloney marked this pull request as ready for review January 19, 2023 17:42
@asmaloney asmaloney requested a review from a team as a code owner January 19, 2023 17:42
@asmaloney asmaloney force-pushed the cmake-compiler-warnings branch 2 times, most recently from ad94d16 to 1b15da7 Compare January 25, 2023 17:10
@asmaloney
Copy link
Contributor Author

I don't know who's in the GDExtension review group, and I can't add reviewers in the UI, so pinging @akien-mga and @Faless for review.

Thank you!

@asmaloney asmaloney force-pushed the cmake-compiler-warnings branch from 1b15da7 to d081b4b Compare February 4, 2023 16:18
@akien-mga akien-mga added enhancement This is an enhancement on the current functionality cmake topic:buildsystem Related to the buildsystem or CI setup labels Feb 7, 2023
@akien-mga akien-mga merged commit 50e97de into godotengine:master Feb 7, 2023
@akien-mga
Copy link
Member

Thanks!

@asmaloney asmaloney deleted the cmake-compiler-warnings branch February 7, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake enhancement This is an enhancement on the current functionality topic:buildsystem Related to the buildsystem or CI setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants