Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0 Beta2
-
msvc2019 19.27.29112.0
cmake 3.19.0-rc2
clang 10.0.0 (https://download.qt.io/development_releases/prebuilt/libclang/qt/libclang-release_100-based-windows-vs2019_64.7z)
-
-
e98fb8dd04c72988e25297d461fa9cf29233c1c2 (qt/qttools/dev)
Description
when I build Qt 6.0 for multiple configurations, for example, debug and release. WrapLibClang could not be found.
cmake -DCMAKE_INSTALL_PREFIX=D:\Qt\6.0.0-beta2-msvc2019-x64-shared -G"Ninja Multi-Config" -DCMAKE_CONFIGURATION_TYPES=Release;Debug -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DINPUT_opengl=desktop -DINPUT_schannel=yes "..\qt-everywhere-src-6.0.0-beta2"
output:
...... -- Building for multiple configurations: Release;Debug. -- Main configuration is: Release. -- Static linkage against libclang with MSVC was requested, but the build is not a release build, therefore libclang cannot be used. -- Could NOT find WrapLibClang (missing: WrapLibClang_FOUND) (found suitable version "10.0.0", minimum required is "8") -- Using source syncqt found at: D:/Qt/src/qt-everywhere-src-6.0.0-beta2/qtbase/bin/syncqt.pl -- Running syncqt for module: 'QtTools' -- Static linkage against libclang with MSVC was requested, but the build is not a release build, therefore libclang cannot be used. -- Could NOT find WrapLibClang (missing: WrapLibClang_FOUND) (found suitable version "10.0.0", minimum required is "8") ......
However, when I only build release, there is no such problem.
cmake -DCMAKE_INSTALL_PREFIX=D:\Qt\6.0.0-beta2-msvc2019-x64-shared -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DINPUT_opengl=desktop -DINPUT_schannel=yes "..\qt-everywhere-src-6.0.0-beta2"
output:
...... -- Found WrapLibClang: TRUE (found suitable version "10.0.0", minimum required is "8") -- Using source syncqt found at: D:/Qt/src/qt-everywhere-src-6.0.0-beta2/qtbase/bin/syncqt.pl -- Running syncqt for module: 'QtTools' ......
Attachments
Issue Links
- relates to
-
QTBUG-85411 lupdate fails to build with NMC on Windows due to mixing MSVC runtimes via LLVM libraries
- Closed
For Gerrit Dashboard: QTBUG-88039 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
320092,2 | CMake: Fix FindWrapLibClang.cmake for multi-config builds | dev | qt/qttools | Status: MERGED | +2 | 0 |