Host Environment
- OS: x64-windows
- Compiler: Visual Studio 2019 Developer Command Prompt v16.5.0
To Reproduce
Steps to reproduce the behavior:
Set build types to release.
echo.set(VCPKG_BUILD_TYPE release)>> triplets\x64-windows.cmake
Install build Qt.
vcpkg install qt5-base[latest]:x64-windows
Build your Qt based C++ application with something like:
mkdir build && cd build
cmake .. -DQt5_DIR:PATH="%VCPKGDIR%\packages\qt5-base_x64-windows\share\cmake\Qt5"
Failure logs
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
CMake Error at windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Gui/Qt5GuiConfig.cmake:15 (message):
The imported target "Qt5::Gui" references the file
"H:/qt5/windows/vcpkg/packages/qt5-base_x64-windows/debug/bin/Qt5Guid.dll"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"H:/qt5/windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Gui/Qt5GuiConfig.cmake"
but not all the files it references.
Call Stack (most recent call first):
windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Gui/Qt5GuiConfig.cmake:37 (_qt5_Gui_check_file_exists)
windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Gui/Qt5GuiConfig.cmake:177 (_populate_Gui_target_properties)
windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:115 (find_package)
windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5/Qt5Config.cmake:28 (find_package)
CMakeLists.txt:16 (find_package)
-- Configuring incomplete, errors occurred!
See also "H:/qt5/build/CMakeFiles/CMakeOutput.log".
Specifically:
The imported target "Qt5::Gui" references the file
"H:/qt5/windows/vcpkg/packages/qt5-base_x64-windows/debug/bin/Qt5Guid.dll"
but this file does not exist.
Additional context
Please fix or revert the regression.
f8165f7#diff-f322c6a00cca5779dfc2edc84a72c0d7
https://github.com/microsoft/vcpkg/blob/master/ports/qt5-base/fixcmake.py#L30
Thanks.
Host Environment
To Reproduce
Steps to reproduce the behavior:
Set build types to release.
echo.set(VCPKG_BUILD_TYPE release)>> triplets\x64-windows.cmakeInstall build Qt.
vcpkg install qt5-base[latest]:x64-windowsBuild your Qt based C++ application with something like:
mkdir build && cd buildcmake .. -DQt5_DIR:PATH="%VCPKGDIR%\packages\qt5-base_x64-windows\share\cmake\Qt5"
Failure logs
Specifically:
Additional context
Please fix or revert the regression.
f8165f7#diff-f322c6a00cca5779dfc2edc84a72c0d7
https://github.com/microsoft/vcpkg/blob/master/ports/qt5-base/fixcmake.py#L30
Thanks.