mirror of
https://github.com/godotengine/godot-git-plugin.git
synced 2026-01-01 01:48:28 +03:00
Properly specify the STATIC_CRT libgit2 flag
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 commit is contained in:
@@ -26,7 +26,7 @@ def build_library(env, deps):
|
||||
"LIBSSH2_INCLUDE_DIR": env.Dir("#thirdparty/ssh2/libssh2/include").abspath,
|
||||
"LIBSSH2_LIBRARY": deps[-1],
|
||||
"USE_WINHTTP": 0,
|
||||
"STATIC_CRT": 0,
|
||||
"STATIC_CRT": env.get("use_static_cpp", True),
|
||||
}
|
||||
|
||||
if env["platform"] != "windows":
|
||||
|
||||
Reference in New Issue
Block a user