Fix Windows MSVC build

Update the CMake tool so it respects the use_static_cpp godot-cpp option
compiling with the proper CRT.

Fix inclusion of secur32 in git2 tool.
This commit is contained in:
Fabio Alessandrelli
2025-05-27 01:24:04 +02:00
parent 3ab9d035e7
commit 1442ac5f0b
2 changed files with 73 additions and 29 deletions

View File

@@ -53,6 +53,8 @@ def build_library(env, deps):
env.Append(CPPPATH=["#thirdparty/git2/libgit2/include"])
env.Prepend(LIBS=git2[1:])
if env["platform"] == "windows":
env.PrependUnique(LIBS=["secur32"])
return git2