Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion vcpkg-ports/kcenon-thread-system/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO kcenon/thread_system
REF "v${VERSION}"
SHA512 9e1bc834b3f523b55f948bc62d1496a0cfb61babe8258f6041e27b790ce8be51cbc8d495e9bdafb2d5bbc1148f05fca69542a1b97c36f030b688e8a022227d51
SHA512 7ff506e34c22d5e5c2e517e8dd8085513ed867a3f2eaa596d8adbe503ec39a79b36a26841c85611a96d0fd4b6c5ca4d9fa71587c4eea382af6c08b9fb7d7ccd6
HEAD_REF main
)

Expand All @@ -27,6 +27,16 @@ vcpkg_cmake_config_fixup(
CONFIG_PATH lib/cmake/thread_system
)

# In legacy/component build mode the config does not create a
# thread_system::thread_system umbrella target. Downstream projects
# (monitoring_system) link against that canonical name, so inject the
# alias when it is missing after the config has been installed.
vcpkg_replace_string(
"${CURRENT_PACKAGES_DIR}/share/thread_system/thread_system-config.cmake"
"check_required_components(thread_system)"
"# Canonical umbrella alias (added by vcpkg portfile)\nif(TARGET thread_system::thread_base AND NOT TARGET thread_system::thread_system)\n add_library(thread_system::thread_system ALIAS thread_system::thread_base)\nendif()\n\ncheck_required_components(thread_system)"
)

# Remove empty directories that cause vcpkg post-build validation errors
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/thread_system/interfaces")

Expand Down
2 changes: 1 addition & 1 deletion vcpkg-ports/kcenon-thread-system/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kcenon-thread-system",
"version-semver": "0.3.1",
"version-semver": "0.3.2",
"port-version": 0,
"description": "High-performance C++20 multithreading framework with lock-free queues and adaptive optimization",
"homepage": "https://github.com/kcenon/thread_system",
Expand Down
Loading