我们可以看到,在D:\git\vcpkg\ports\目录下多出一个vcpkgdemo目录,并且目录下有两个文件portfile.cmake和CONTROL。 c) 定制CONTROL文件 CONTROL文件原始内容如下: Source: vcpkgdemo Version: Description: 1 2 3 4 我们修改为下面内容: Source: vcpkgdemo Version: 1.0 Description: A demo to show how to ...
若要判斷 portfile 中的目標,應該使用 vcpkg triplet 變數 (VCPKG_CMAKE_SYSTEM_NAME)。 另請參閱我們的三重檔,以取得可能設定的完整列舉。 其他資源 訓練 學習路徑 在Azure 上執行高效能運算 (HPC) 應用程式 - Training Azure HPC 是適用於 HPC 和 AI 工作負載的特殊用途雲端功能,使用頂尖處理器和 HPC 級...
port edit Edits a port, optionally with %EDITOR%, defaults to "code" env Creates a clean shell environment for development or compiling format-manifest Prettyfies vcpkg.json hash Gets a file's SHA256 or SHA512 x-init-registry Creates a blank git registry new Creates a new manifest x-...
Copy { "version": "0.2.0", "configurations": [ { "type": "cmake", "request": "launch", "name": "Debug zlib portfile", "cmakeDebugType": "external", "pipeName": "\\\.\\pipe\\portfile_debugging", "preLaunchTask": "Reinstall zlib" } ] } This...
2f6537fa2b8928d2329e827f862692112793435d port_versions/f-/fmt.json (Victor Romero 2021-01-14 16:08:36 -0800 1) { 2f6537fa2b8928d2329e827f862692112793435d port_versions/f-/fmt.json (Victor Romero 2021-01-14 16:08:36 -0800 2) "versions": [ ...
修改vcpkg\ports\cserialport\portfile.cmake文件,vcpkg_from_github中修改REF和SHA512为指定版本的数据。REF为github的commit id,SHA512为其对应的*.tar.gz文件的SHA512hash值。 如以CSerialPort v4.2.0为例 - 找到所需版本的commit id或 tag $ git log ...
--x-cmake-debug=<debugger-pipe>[;semicolon;port;list] Enables CMake’s–debuggerwhile running directly-invoked CMake scripts like triplet files (for example:x64-windows.cmake) orportfile.cmakefiles. The<debugger-pipe>value is passed as–debugger-pipeon the CMake command li...
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(GLOB EXES ${CURRENT_PACKAGES_DIR}/bin/*.exe ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe) if(EXES) file(REMOVE ${EXES}) endif() if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")...
$ cmake -B [build directory] -S."-DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake"$ cmake --build [build directory] With CMake, you will still need tofind_packageand the like to use the libraries. Check out theCMake sectionfor more information on how best to...
[mysql-connector-cpp] Add new port (#25652) 3年前 .gitattributes [vcpkg] Make C++ the primary github language (#12810) 5年前 .gitignore [docs registries] Add reference documentation (#17672) 4年前 .vcpkg-root Add .vcpkg-root file that signifies the root directory ...