Skip to content

Commit

Permalink
[czmq] Delete "headers" that should not be installed (#24434)
Browse files Browse the repository at this point in the history
See: zeromq/czmq#2197
Related: #24433
  • Loading branch information
BillyONeal authored Apr 27, 2022
1 parent fb02a78 commit 474f736
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ports/czmq/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions ports/czmq/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@
},
"czmq": {
"baseline": "4.2.1",
"port-version": 0
"port-version": 1
},
"d3d12-memory-allocator": {
"baseline": "2021-05-05",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/czmq.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fd4ccb9b894541d10e393139468aaac97419b0f2",
"version-semver": "4.2.1",
"port-version": 1
},
{
"git-tree": "e05dc72cf3b616b1fd6629ea3dc20d08ed8d8055",
"version-semver": "4.2.1",
Expand Down

0 comments on commit 474f736

Please sign in to comment.