mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Build static libgit2 with dynamic CRT on Windows (#4432)
* Build static libgit2 with dynamic CRT on Windows * [vcpkg-triplets] Revert changes to built-in triplets * [libgit2] Simplify computation of STATIC_CRT
This commit is contained in:
parent
c5f77be5c5
commit
8bb061a20c
@ -1,4 +1,4 @@
|
||||
Source: libgit2
|
||||
Version: 0.27.4-1
|
||||
Version: 0.27.4-2
|
||||
Build-Depends: openssl (!windows&&!uwp)
|
||||
Description: Git linkable library
|
||||
|
@ -10,13 +10,17 @@ vcpkg_from_github(
|
||||
REPO libgit2/libgit2
|
||||
REF v0.27.4
|
||||
SHA512 d27db86eb1b9f0d4057f8538ba1985ee76c3ca106e57d417fa9bff79d575f91a07ad28693112b58dc1d61d68116a82e6a145f12276158f2806b6c4964d741f61
|
||||
HEAD_REF master)
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBUILD_CLAR=OFF
|
||||
-DSTATIC_CRT=${STATIC_CRT}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
Loading…
x
Reference in New Issue
Block a user