From 1323ad395a3a3d6824a34454e4d48fe24c939dc0 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 15 Sep 2022 13:32:04 +0200 Subject: [PATCH] README: Add notes regarding correct Qt CMAKE_PREFIX_PATH Users pass the value for Qt in `CMAKE_PREFIX_PATH` too deep like: c:/Qt/6.2.4/msvc2019_64/lib/cmake/Qt6 and CMake can't find all the components and weird errors are generated. Task-number: QTCREATORBUG-28178 Change-Id: Icef7aef9e0933bd326ebd904623aac80c9f8e8c8 Reviewed-by: Eike Ziller Reviewed-by: Leena Miettinen --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 50c10733d6e..50dd9152a0b 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,9 @@ Note that if you install Qt via the online installer, the path to Qt must include the version number and compiler ABI. The path to the online installer content is not enough. +Note that `/path/to/Qt` doesn't imply the full path depth like: +`$USER/Qt/6.2.4/gcc_64/lib/cmake/Qt6`, but only `$USER/Qt/6.2.4/gcc_64`. + See [instructions](#getting-llvmclang-for-the-clang-code-model) on how to get LLVM. @@ -85,6 +88,11 @@ Note that if you install Qt via the online installer, the path to Qt must include the version number and compiler ABI. The path to the online installer content is not enough. +Note that `\path\to\Qt` doesn't imply the full path depth like: +`c:\Qt\6.2.4\msvc2019_64\lib\cmake\Qt6`, but only `c:/Qt/6.2.4/msvc2019_64`. +The usage of slashes `/` is intentional, since CMake has issues with backslashes `\` +in `CMAKE_PREFX_PATH`, they are interpreted as escape codes. + See [instructions](#getting-llvmclang-for-the-clang-code-model) on how to get LLVM.