mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Add missing pkg_config_defines when built with CMake
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. Signed-off-by: Nicolas Benes <nbenes.gh@xandea.de>
This commit is contained in:
parent
532b61275e
commit
c079ca5cc4
@ -142,6 +142,7 @@ endif()
|
|||||||
# Will be used to add flags to pkg-config useful when apps want to statically link
|
# Will be used to add flags to pkg-config useful when apps want to statically link
|
||||||
set(pkg_config_libs_private "")
|
set(pkg_config_libs_private "")
|
||||||
set(pkg_config_names_private "")
|
set(pkg_config_names_private "")
|
||||||
|
set(pkg_config_defines "")
|
||||||
|
|
||||||
option(WITH_OPENPGM "Build with support for OpenPGM" OFF)
|
option(WITH_OPENPGM "Build with support for OpenPGM" OFF)
|
||||||
option(WITH_NORM "Build with support for NORM" OFF)
|
option(WITH_NORM "Build with support for NORM" OFF)
|
||||||
@ -1463,6 +1464,7 @@ foreach(target ${build_targets})
|
|||||||
|
|
||||||
if(ENABLE_DRAFTS)
|
if(ENABLE_DRAFTS)
|
||||||
target_compile_definitions(${target} PUBLIC ZMQ_BUILD_DRAFT_API)
|
target_compile_definitions(${target} PUBLIC ZMQ_BUILD_DRAFT_API)
|
||||||
|
set(pkg_config_defines "-DZMQ_BUILD_DRAFT_API=1")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user