[zeromq]Fix missing system version for mingw builds (#13408)

* Fix missing system version

System version is required to be 6.0 or higher for ZeroMQ to work correctly.

* Update ports/zeromq/CONTROL

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
This commit is contained in:
bialasjaroslaw 2020-09-09 21:01:49 +02:00 committed by GitHub
parent dc56928e6a
commit ad81400f9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Source: zeromq
Version: 2019-09-20
Port-Version: 1
Homepage: https://github.com/zeromq/libzmq
Description: The ZeroMQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialised messaging middleware products

View File

@ -19,6 +19,11 @@ vcpkg_check_features(
websockets-sha1 DISABLE_WS
)
set(PLATFORM_OPTIONS)
if(VCPKG_TARGET_IS_MINGW)
set(PLATFORM_OPTIONS "-DCMAKE_SYSTEM_VERSION=6.0")
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@ -31,6 +36,7 @@ vcpkg_configure_cmake(
-DWITH_DOCS=OFF
-DWITH_NSS=OFF
${FEATURE_OPTIONS}
${PLATFORM_OPTIONS}
OPTIONS_DEBUG
"-DCMAKE_PDB_OUTPUT_DIRECTORY=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg"
)