Open insar-dev opened 4 months ago
It seems that CMAKE_PREFIX_PATH has not been passed to CMakelist.txt of custom port.
@insar-dev, thanks for posting this issue, I will try to reproduce your issue locally.
It seems that CMAKE_PREFIX_PATH has not been passed to CMakelist.txt of custom port.
Hardly any setup details are passed through from your user project to vcpkg tool to portfiles script mode to CMake project mode. You use the regular CMake integration variables,
https://learn.microsoft.com/en-us/vcpkg/users/buildsystems/cmake-integration#settings-reference.
Basically, mixing non-vcpkg dependencies and vcpkg dependencies could be troublesome. Qt comes with a lot of dependencies, e.g. zlib.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Describe the bug I have installed qt using online installer. Now I create a cmake project with overlay port in vs2022. I have set necessary var in CMakepreset.json:
error info:
I upload the test project. vcpkg_test.zip
Environment
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Failure logs
Additional context Add any other context about the problem here.