Host Environment
To Reproduce
vcpkg install librdkafka
Failure logs
-- Using cached lz4-lz4-v1.9.4.tar.gz.
-- Cleaning sources at C:/Tools/Workspaces/DiagnosticSW/Third-Party/vcpkg/vcpkg/buildtrees/lz4/src/v1.9.4-9f4a1a30bd.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Tools/Workspaces/DiagnosticSW/Third-Party/vcpkg/vcpkg/downloads/lz4-lz4-v1.9.4.tar.gz
-- Using source at C:/Tools/Workspaces/DiagnosticSW/Third-Party/vcpkg/vcpkg/buildtrees/lz4/src/v1.9.4-9f4a1a30bd.clean
CMake Error at ports/lz4/portfile.cmake:11 (vcpkg_cmake_configure):
Unknown CMake command "vcpkg_cmake_configure".
Call Stack (most recent call first):
scripts/ports.cmake:170 (include)
解决方法:
Old vcpkg repo - update vcpkg:
cd <vcpkg-root>
git pull
.\vcpkg-bootstrap.bat
vcpkg upgrade --no-dry-run
vcpkg install librdkafka