Skip to content

Commit 01bcc7d

Browse files
Remove ENABLE_DRAFTS option
This option added ZMQ_BUILD_DRAFT_API to the compile definitions. However, this should be propagated by libzmq (see zeromq/libzmq#4323 and #477). Signed-off-by: Stephan Lachnit <[email protected]>
1 parent 6164cf7 commit 01bcc7d

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ jobs:
132132
run: |
133133
cmake -H. -Bbuild ${{ matrix.platform}} ${{ matrix.coverage }} \
134134
-DCMAKE_BUILD_TYPE=${BUILDTYPE} \
135-
-DENABLE_DRAFTS=${{ matrix.drafts }} \
136135
-DCMAKE_CXX_STANDARD=${{ matrix.cppstd }}
137136
cmake --build build --config ${BUILDTYPE} -j ${THREADS}
138137
echo "CPPZMQ=${PWD}/build" >> ${GITHUB_ENV}

CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ if (NOT TARGET libzmq AND NOT TARGET libzmq-static)
2626
endif()
2727
endif()
2828

29-
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
30-
OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" ON)
31-
else ()
32-
OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" OFF)
33-
endif ()
34-
if (ENABLE_DRAFTS)
35-
ADD_DEFINITIONS (-DZMQ_BUILD_DRAFT_API)
36-
set (pkg_config_defines "-DZMQ_BUILD_DRAFT_API=1")
37-
else (ENABLE_DRAFTS)
38-
set (pkg_config_defines "")
39-
endif (ENABLE_DRAFTS)
40-
4129
message(STATUS "cppzmq v${cppzmq_VERSION}")
4230

4331
set(CPPZMQ_HEADERS

0 commit comments

Comments
 (0)