zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.53k stars 2.34k forks source link

Add missing pkg_config_defines when built with CMake #4545

Closed panicgh closed 1 year ago

panicgh commented 1 year ago

The pkg_config_defines variable was only set in configure.ac, but not in CMake. This lead to the -DZMQ_BUILD_DRAFT_API=1 flag to be omitted from the generated pkg-config file.

configure.ac contains this to set the variable accordingly:

https://github.com/zeromq/libzmq/blob/532b61275e93a8f7e0f2dee4ee1a83f075325926/configure.ac#L1056-L1063

bluca commented 1 year ago

Please add a relicense statement https://github.com/zeromq/libzmq/tree/master/RELICENSE