Skip to content

Conversation

@Shatur
Copy link
Contributor

@Shatur Shatur commented Oct 3, 2021

  • Attach debug flags to the target and mark as PUBLIC. This will allow all
    projects that use bindings not to add the same defines manually.
  • Use generator-expressions to support multiconfig generators (such as
    MSVC).
  • Remove explicit NDEBUG and _DEBUG flags, CMake handles it
    automatically.

* Attach debug flags to the target and mark as `PUBLIC`. This will allow all
  projects that use bindings not to add the same defines manually.
* Use generator-expressions to support multiconfig generators (such as
  MSVC).
* Remove excplitic `NDEBUG` and `_DEBUG` flags, CMake handles it
  automatically.
@BastiaanOlij BastiaanOlij added topic:buildsystem Related to the buildsystem or CI setup cmake topic:gdextension This relates to the new Godot 4 extension implementation labels Oct 3, 2021
Copy link
Collaborator

@BastiaanOlij BastiaanOlij left a comment

Choose a reason for hiding this comment

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

Looks good to me

@akien-mga akien-mga merged commit d9e643d into godotengine:master Oct 4, 2021
@Shatur Shatur deleted the rework-cmake-debug-flags branch October 4, 2021 07:15
@akien-mga
Copy link
Member

Thanks!

Note that this is conflating debug (developers) with debug (tools), which is even worse when reusing the CMAKE_BUILD_TYPE for that. See godotengine/godot-proposals#3371
But this PR doesn't make it worse so it's fine ;)

@akien-mga akien-mga added this to the 4.0 milestone Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake topic:buildsystem Related to the buildsystem or CI setup topic:gdextension This relates to the new Godot 4 extension implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants