Skip to content

fix windows pipeline #183

@owlkward

Description

@owlkward

Commit 2312fb2 tried to fix the windows pipeline, but cmake still does not find Qt for some reason.
Qt5 is installed via vcpkg and in the pipeline specifically with https://github.com/lukka/run-vcpkg/tree/v11.0, but the documentation from run-vcpkg says the dependencies are only built if the option runVcpkgInstall is set to true, but suggests it to not use that (and using it does not solve the problem, I have tried that).
Instead it suggests to let https://github.com/lukka/run-cmake/tree/v10 handle it, by using a preset set in CMakePreset.json that sets the CMAKE_TOOLCHAIN_FILE to the vcpkg.cmake contained in the vcpkg installation.
The vcpkg documentation claims that if vcpkg.cmake is used as the toolchain file the find_package calls should just work.
This is what is currently implemented, but it still fails.
Specifically the mentioned commit is heavily inspired by the samples linked in the run-cmake README, i.e. this workflow file https://github.com/lukka/CppBuildTasks-Validation/blob/v10/.github/workflows/hosted-ninja-vcpkg.yml and this CMakePreset.json for its ninja-multi-vcpkg preset: https://github.com/lukka/CppBuildTasks-Validation/blob/v10/cmakepresets/CMakePresets.json
This answer on a vcpkg issue microsoft/vcpkg#11247 (comment) says that it should work if the vcpkg triplet is explicitly set, but that also did not solve the problem, unless I did not set them correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions