Merge pull request #3546 from skicc/patch-1

CMake: don't try to link with librt on MinGW
This commit is contained in:
Luca Boccassi 2019-06-15 16:12:44 +01:00 committed by GitHub
commit b17e854f15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 3 deletions

View File

@ -362,9 +362,11 @@ else()
check_cxx_symbol_exists(LOCAL_PEERCRED sys/socket.h ZMQ_HAVE_LOCAL_PEERCRED)
endif()
find_library(RT_LIBRARY rt)
if(RT_LIBRARY)
set(pkg_config_libs_private "${pkg_config_libs_private} -lrt")
if(NOT MINGW)
find_library(RT_LIBRARY rt)
if(RT_LIBRARY)
set(pkg_config_libs_private "${pkg_config_libs_private} -lrt")
endif()
endif()
find_package(Threads)

15
RELICENSE/skicc.md Normal file
View File

@ -0,0 +1,15 @@
# Permission to Relicense under MPLv2 or any other OSI approved license chosen by the current ZeroMQ BDFL
This is a statement by skicc
that grants permission to relicense its copyrights in the libzmq C++
library (ZeroMQ) under the Mozilla Public License v2 (MPLv2) or any other
Open Source Initiative approved license chosen by the current ZeroMQ
BDFL (Benevolent Dictator for Life).
A portion of the commits made by the Github handle "skicc", with
commit author "skicc <skicc@fastmail.com>", are copyright of skicc.
This document hereby grants the libzmq project team to relicense libzmq,
including all past, present and future contributions of the author listed above.
skicc
2019/06/15