From 284a2c6caee99d9d36ef934287a6a1c25eb196a5 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 27 Aug 2021 05:03:58 +0700 Subject: [PATCH] rare case, but let other not waste time trying to fix it --- docs/README.CMAKE | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/README.CMAKE b/docs/README.CMAKE index e964f4f..c9f0382 100644 --- a/docs/README.CMAKE +++ b/docs/README.CMAKE @@ -61,7 +61,7 @@ the required libraries, vcpkg can install them automatically. The steps are: 1. Install vcpkg, see https://vcpkg.io/en/getting-started.html 2. Choose the vcpkg architecture - SET VCPKG_DEFAULT_TRIPLET="x64-windows" (or add pkgname:x64-windows) + SET VCPKG_DEFAULT_TRIPLET=x64-windows (or add pkgname:x64-windows) 3. install the dependencies needed for the build. F.e. C:\vcpkg\vcpkg.exe install libpng libjpeg-turbo freetype tiff libheif libwebp 4. add -DCMAKE_TOOLCHAIN_FILE=[path to c:\path\to\vcpkg]\scripts\buildsystems\vcpkg.cmake @@ -69,4 +69,8 @@ the required libraries, vcpkg can install them automatically. The steps are: It is then not needed to manually add CMAKE_INCLUDE_PATH or CMAKE_LIBRARY_PATH as options. -See the https://vcpkg.io for more informations about vcpkg and how to customize an install. \ No newline at end of file +See the https://vcpkg.io for more informations about vcpkg and how to customize an install. + +Randomly, you may cmake may fail to find the dependencies, with vcpkg at least up to 2021-08-12-85ab112d5ee102bc6eac8cdbbfdd173a71374e04 (as of the time of writing). +So far the only way to fix it is to reinstall vcpkg and then install the dependencies again. See https://github.com/microsoft/vcpkg/issues/13614, +especially my comment on the 27th of August 2021 and follow ups. \ No newline at end of file