Skip to content

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

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
asmaloney:cmake-compiler-warnings
Feb 7, 2023
Merged

{cmake} Use the same compiler warnings as godot#1008
akien-mga merged 1 commit into
godotengine:masterfrom
asmaloney:cmake-compiler-warnings

Conversation

@asmaloney

@asmaloney asmaloney commented Jan 19, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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