Skip to content

Conversation

Faless
Copy link
Contributor

@Faless Faless commented May 27, 2025

libgit2 CMake configuration uses a custom flag STATIC_CRT and not the new CMake policy CMP0091.

When forcing the CMake policy (as we do in our cmake tool), we need to also set the custom STATIC_CRT to avoid compiler warning about the /MD and /MT flag being overridden.

This was probably set to 0 because the old godot cpp used /MD by default.

Follow up on #199 (comment)

libgit2 CMake configuration uses a custom flag `STATIC_CRT` and not the
new CMake policy CMP0091.

When forcing the CMake policy (as we do in our cmake tool), we need to
also set the custom `STATIC_CRT` to avoid compiler warning about the /MD
and /MT flag being overridden.
@akien-mga akien-mga changed the title Properly specify the STATIC_CRT libgit2 flag Properly specify the STATIC_CRT libgit2 flag May 27, 2025
@akien-mga akien-mga merged commit 1e346f8 into godotengine:master May 27, 2025
4 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants