[uvw] Fix build errors by defining UVW_AS_LIB (#46902)

This commit is contained in:
Weihang Ding 2025-08-14 02:43:00 +08:00 committed by GitHub
parent b664925609
commit f7068fb72e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 1 deletions

View File

@ -21,6 +21,8 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/uvw)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/uvw/config.h" "#ifndef UVW_AS_LIB" "#define UVW_AS_LIB\n#ifndef UVW_AS_LIB")
file(READ "${CURRENT_PACKAGES_DIR}/share/uvw/uvwConfig.cmake" cmake_config)
file(WRITE "${CURRENT_PACKAGES_DIR}/share/uvw/uvwConfig.cmake"
"include(CMakeFindDependencyMacro)

View File

@ -1,6 +1,7 @@
{
"name": "uvw",
"version": "3.2.0",
"port-version": 1,
"description": "A compilable static library, event based, tiny and easy to use libuv wrapper in modern C++.",
"homepage": "https://github.com/skypjack/uvw",
"license": "MIT",

View File

@ -9898,7 +9898,7 @@
},
"uvw": {
"baseline": "3.2.0",
"port-version": 0
"port-version": 1
},
"uwebsockets": {
"baseline": "20.74.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7e8c728dc4f9b6a630f970effb1bbcbda809da6b",
"version": "3.2.0",
"port-version": 1
},
{
"git-tree": "82ef2ed3a8ae1df65e8e922c5d7917d3271f457d",
"version": "3.2.0",