修改vcpkg

This commit is contained in:
JackLee_CN 2025-08-21 13:26:26 +08:00
parent 21d5a7b32f
commit 9c48c8e6bd
5 changed files with 20 additions and 15 deletions

2
.gitignore vendored
View File

@ -10,6 +10,8 @@ dist/
build/
release/
/release
/vcpkg
.gitmodules
# Compiled Java class files
*.class

View File

@ -1,9 +1,10 @@
#cmake
cmake_minimum_required(VERSION 3.19)
SET(VCPKG_ROOT "F:/SourceCode/vcpkg")
SET(CMAKE_TOOLCHAIN_FILE "F:/SourceCode/vcpkg/scripts/buildsystems/vcpkg.cmake")
SET(VCPKG_ROOT ${PROJECT_SOURCE_DIR}/vcpkg)
#SET(CMAKE_TOOLCHAIN_FILE "${PROJECT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake")
SET(VCPKG_TARGET_TRIPLET "x64-mingw-static")
SET(VCPKG_HOST_TRIPLET "x64-mingw-static")
SET(CMAKE_C_COMPILER "x86_64-w64-mingw32-gcc.exe")
SET(CMAKE_CXX_COMPILER "x86_64-w64-mingw32-g++.exe")
#

View File

@ -23,7 +23,9 @@
"CMAKE_MAKE_PROGRAM": "ninja.exe",
"CMAKE_C_COMPILER": "x86_64-w64-mingw32-gcc.exe",
"CMAKE_CXX_COMPILER": "x86_64-w64-mingw32-g++.exe",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
"VCPKG_TARGET_TRIPLET":"x64-mingw-static",
"VCPKG_HOST_TRIPLET":"x64-mingw-static",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake"
}
}
]

12
vcpkg.json Normal file
View File

@ -0,0 +1,12 @@
{
"dependencies": [
{
"name": "curl",
"version>=": "8.15.0"
},
{
"name": "libgit2",
"version>=": "1.9.1"
}
]
}

View File

@ -1,12 +0,0 @@
{
"dependencies": [
{
"name":"curl",
"version>=":"8.10.1"
},
{
"name":"libgit2",
"version>=":"1.8.0"
}
]
}