mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 10:33:52 +01:00
Remove ENABLE_DRAFTS option
This option added ZMQ_BUILD_DRAFT_API to the compile definitions. However, this should be propagated by libzmq (see https://github.com/zeromq/libzmq/pull/4323 and https://github.com/zeromq/cppzmq/issues/477). Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
This commit is contained in:
parent
6164cf7dbc
commit
01bcc7d474
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -132,7 +132,6 @@ jobs:
|
||||
run: |
|
||||
cmake -H. -Bbuild ${{ matrix.platform}} ${{ matrix.coverage }} \
|
||||
-DCMAKE_BUILD_TYPE=${BUILDTYPE} \
|
||||
-DENABLE_DRAFTS=${{ matrix.drafts }} \
|
||||
-DCMAKE_CXX_STANDARD=${{ matrix.cppstd }}
|
||||
cmake --build build --config ${BUILDTYPE} -j ${THREADS}
|
||||
echo "CPPZMQ=${PWD}/build" >> ${GITHUB_ENV}
|
||||
|
@ -26,18 +26,6 @@ if (NOT TARGET libzmq AND NOT TARGET libzmq-static)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
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)
|
||||
|
||||
message(STATUS "cppzmq v${cppzmq_VERSION}")
|
||||
|
||||
set(CPPZMQ_HEADERS
|
||||
|
Loading…
Reference in New Issue
Block a user