[czmq] Delete "headers" that should not be installed (#24434)

See: https://github.com/zeromq/czmq/issues/2197
Related: https://github.com/microsoft/vcpkg/pull/24433
This commit is contained in:
Billy O'Neal 2022-04-27 12:02:26 -07:00 committed by GitHub
parent fb02a78561
commit 474f73649c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 1 deletions

View File

@ -70,6 +70,12 @@ vcpkg_clean_executables_in_bin(FILE_NAMES zmakecert)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
# Remove headers with "common" names that conflict with other packages which aren't intended to be installed
# See https://github.com/zeromq/czmq/issues/2197
foreach(FILE readme.txt sha1.h sha1.inc_c slre.h slre.inc_c zgossip_engine.inc zgossip_msg.h zhash_primes.inc zsock_option.inc)
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/${FILE}")
endforeach()
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/czmq_library.h
"if defined CZMQ_STATIC"

View File

@ -1,6 +1,7 @@
{
"name": "czmq",
"version-semver": "4.2.1",
"port-version": 1,
"description": "High-level C binding for ZeroMQ",
"homepage": "https://github.com/zeromq/czmq",
"license": "MPL-2.0",

View File

@ -1762,7 +1762,7 @@
},
"czmq": {
"baseline": "4.2.1",
"port-version": 0
"port-version": 1
},
"d3d12-memory-allocator": {
"baseline": "2021-05-05",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fd4ccb9b894541d10e393139468aaac97419b0f2",
"version-semver": "4.2.1",
"port-version": 1
},
{
"git-tree": "e05dc72cf3b616b1fd6629ea3dc20d08ed8d8055",
"version-semver": "4.2.1",