Skip to content

Conversation

lemirep
Copy link
Contributor

@lemirep lemirep commented Sep 30, 2025

vcpkg should hopefully be more convenient than FetchContent.
In turn KDGpu and other internal projects will be able to build KDUtils with vcpkg

@lemirep lemirep requested review from MiKom, jaw and seanharmer September 30, 2025 13:16
@lemirep lemirep force-pushed the vcpkg branch 3 times, most recently from 989060f to a145853 Compare September 30, 2025 14:00
@MiKom
Copy link
Member

MiKom commented Sep 30, 2025

Hey. I think that CI jobs fail because by default, GitHub doesn't check out submodules. We'd need submodules: 'true' in the checkout step. See https://github.com/actions/checkout?tab=readme-ov-file#usage

@MiKom MiKom force-pushed the vcpkg branch 12 times, most recently from 6c0c19b to dd851d6 Compare October 3, 2025 15:39
lemirep and others added 10 commits October 17, 2025 14:30
Change-Id: Ic1a6ef5cf5af5b0567817392ce5fc61358b690ca
We declare the default repository with appropriate sha separately in
vcpkg-configuration.json.

Having "builtin-baseline" in such case generates vcpkg warning.
We don't want to check the code there, that's not our code.
Was vcpkg/vcpkg due to omission. Also, it was made shallow by default.
Normally people will just want to build so there's no need to fetch it
with the whole history.

If someone wants to work with the submodule, it can always be
unshallowed.
Otherwise, we won't get vcpkg.
Like we do in one of our internal projects. This way it will be less
confusing for the user and they'll get instant feedback on what to do
if they checked out without submodules.
For now we only test with external dependencies on macOS. mio and
whereami are not available in brew so we'll still fetch them with CMake.

Doctest needed to be added to brew deps.
MiKom added 2 commits October 17, 2025 14:31
It didn't use the FindWhereami.cmake file because the capitalization
was wrong. In find_package() we used "whereami", starting with lowercase
letter.
I cannot figure out why they started popping up after switching to
vcpkg.

Seems that without vcpkg tests were not actually going through
clang-tidy for some reason.

Let's fix those then.
Copy link
Member

@MiKom MiKom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My review pertains only to Paul's commit as it was me who built upon it so I'm hereby not reviewing my own commits.

vcpkg.json Outdated
"description": "KD Utilities Library - Core utilities and helper functions",
"homepage": "https://github.com/KDAB/kdutils",
"license": "MIT",
"supports": "!(uwp | arm)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!arm is a bit sus

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, overlooked it. Now I made it more truthful.

It's just informative but let's at leas be truthful here. It doesn't
mean it won't work elsewhere. Just that these are the platforms we
currently test for and care about. May change in the future.
@MiKom MiKom requested a review from iamsergio October 17, 2025 19:24
@MiKom MiKom merged commit 35a8651 into main Oct 18, 2025
34 checks passed
@MiKom MiKom deleted the vcpkg branch October 18, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants