[tesults-cpp] Add tesults-cpp v1.0.1#51918
Conversation
vicroms
left a comment
There was a problem hiding this comment.
Need to add host-only dependencies on vcpkg-cmake and vcpkg-cmake-config to use the helper functions in portfile.cmake.
| "dependencies": [ | ||
| "curl", | ||
| "nlohmann-json", | ||
| "openssl" | ||
| ] |
There was a problem hiding this comment.
| "dependencies": [ | |
| "curl", | |
| "nlohmann-json", | |
| "openssl" | |
| ] | |
| "dependencies": [ | |
| "curl", | |
| "nlohmann-json", | |
| "openssl", | |
| { | |
| "name": "vcpkg-cmake", | |
| "host": true | |
| }, | |
| { | |
| "name": "vcpkg-cmake-config", | |
| "host": true | |
| } | |
| ] |
| ) | ||
|
|
||
| vcpkg_cmake_install() | ||
| vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/tesults) |
There was a problem hiding this comment.
Copilot found issues with the integration files. There's a missing find_dependency(nlohmann_json).
Installed CMake package is not consumable as generated.
find_package(tesults CONFIG REQUIRED)fails becausetesultsTargets.cmakereferencesnlohmann_json::nlohmann_json, whiletesultsConfig.cmakedoes not findnlohmann-json. Fix upstream or patch the port so the installed config callsfind_dependency(nlohmann_json CONFIG REQUIRED)before includingtesultsTargets.cmake.
| }, | ||
| { | ||
| "git-tree": "eedba78f36ff095ef39a29ae1e55af924ec5bb21", | ||
| "version": "1.0.0", | ||
| "port-version": 0 | ||
| } |
There was a problem hiding this comment.
| }, | |
| { | |
| "git-tree": "eedba78f36ff095ef39a29ae1e55af924ec5bb21", | |
| "version": "1.0.0", | |
| "port-version": 0 | |
| } | |
| } |
Only one version of a port per PR.
Summary
This PR adds the
tesults-cppport — a C++ library for uploading test results to Tesults.Port details
tesults-cpp1.0.0curl,nlohmann-json,opensslTesting
Port was tested locally on macOS (Apple Silicon) with:
vcpkg install tesults-cppThe example in the upstream repo builds and links correctly against the installed library.
Checklist
vcpkg x-add-versionrun and versioning files committedvcpkg_install_copyrightincludedfile(REMOVE_RECURSE ...)removes debug/include duplicates