Using vcpkg for glm etc., cmake doesn't find the preinstalled Qt anymore
Hello,
for my project I need some dependencies. Some of them I installed using vcpkg (glm, glbinding, globjects), some via nuget (zlib, libpng) and others are preinstalled (Qt5).
The glbinding-Dependency is only offered via vcpkg. Since I use it, cmake is not able to find Qt anymore.
QT5_DIR is set correctly, I also tried using Qt5Core_DIR etc.
I followed this doc:
https://www.appveyor.com/docs/lang/cpp/
where it is said to use
cmake -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake ...
I suspect that since I use that toolchain file, Qt5 (which is preinstalled) isn't found. But I never used toolchain files before, so that is just a wild guess.
Could you assist me in finding a way to make Cmake find the Qt files?
The appveyor.yml is attached.
The link to project build:
https://ci.appveyor.com/project/anne-gropler/openll-asset-generator-5cjbt/build/156/job/5pspyvjt0u9j0jno
- appveyor.yml 3.34 KB
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Anne on Mar 02, 2018 @ 07:34 PM
Addendum: The dependencies installed using nuget aren't found neither.
2 Posted by mloskot on Mar 15, 2018 @ 08:49 PM
Anne, I experienced similar issue with Boost.
It was due to bug in vcpkg, see my story here
https://help.appveyor.com/discussions/problems/13000-cmake_toolchai...
3 Posted by Anne on Mar 19, 2018 @ 01:42 PM
mloskot: Thanks, good to know!
Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 02:27 AM.