Using vcpkg as a Package Manager with CMake
To use vcpkg as a package manager with CMake, add the following command line option: '-DCMAKE_TOOLCHAIN_FILE=/home/bingda/vcpkg/scripts/buildsystems/vcpkg.cmake'. This instructs CMake to utilize the vcpkg toolchain file for project configuration and building, allowing vcpkg to manage project dependencies. The path to the vcpkg toolchain file may vary based on the installation location of vcpkg on your system.
原文地址: https://www.cveoy.top/t/topic/njTv 著作权归作者所有。请勿转载和采集!