Skip to content

Build instructions for libzmq and cppzmq with draft apis #455

@wynn4

Description

@wynn4

Following the basic install instructions here:
https://github.com/zeromq/cppzmq#build-instructions

Results in builds where the draft apis are not enabled. Looking into the CMakeLists.txt files, I thought that if I cloned the repositories (as opposed to downloading a .tar.gz from the release page) that the draft functions would be enabled.

From CMakeLists.txt:

if (EXISTS "${CMAKE_SOURCE_DIR}/.git") OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" ON) else () OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" OFF) endif () if (ENABLE_DRAFTS) ADD_DEFINITIONS (-DZMQ_BUILD_DRAFT_API) set (pkg_config_defines "-DZMQ_BUILD_DRAFT_API=1") else (ENABLE_DRAFTS) set (pkg_config_defines "") endif (ENABLE_DRAFTS)

Is there a simple change to these instructions that would change this? Specifically I'm hoping to use the cppzmq's poller functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions