summaryrefslogtreecommitdiffstats
path: root/cmake/README.md
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-03-11 16:39:46 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-03-11 16:54:10 +0000
commitea7d13de0da8fc1107f97f18f14cc3d16ab7008b (patch)
treeb0b170df8b524f42530e5dc05c47678f3e4e5ba2 /cmake/README.md
parent4b105d77c24fb09fc65f1b1e622a47c69dabccaf (diff)
Update README to mention setting the vcpkg toolchain
Change-Id: Icac2ba956246901e02bb6aa257f81cccf56560e8 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'cmake/README.md')
-rw-r--r--cmake/README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/README.md b/cmake/README.md
index 49fbda5df3..24ac29d8e6 100644
--- a/cmake/README.md
+++ b/cmake/README.md
@@ -35,7 +35,8 @@ You may use vcpkg to install dependencies needed to build QtBase.
* Linux: ``x64-linux``
* Windows: ``qt-x86-windows-static``
* Build Qt dependencies: ``vcpkg install zlib pcre2 double-conversion harfbuzz``
- * When running cmake in qtbase, pass ``-DCMAKE_PREFIX_PATH=/path/to/your/vcpkg/installed/$VCPKG_DEFAULT_TRIPLET`` or ``-DCMAKE_PREFIX_PATH=/path/to/your/vcpkg/installed/%VCPKG_DEFAULT_TRIPLET%`` on Windows.
+ * When running cmake in qtbase, pass ``-DCMAKE_TOOLCHAIN_FILE=/path/to/your/vcpkg/scripts/buildsystems/vcpkg.cmake``
+ Previously CMAKE_PREFIX_PATH was mentioned instead of CMAKE_TOOLCHAIN_PATH. Setting CMAKE_PREFIX_PATH to the vcpkg installed folder is not enough, because then find_package is not overridden by vcpkg and cmake might not propagate all library dependencies for static packages (freetype is one such package).
# Building against homebrew on macOS