Skip to content

Commit 6541dd1

Browse files
authored
Merge pull request #565 from stephanlachnit/p-remove-draft-api-setting
Remove ENABLE_DRAFTS option
2 parents 23cd83e + 2fd8bfc commit 6541dd1

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

.github/workflows/ci.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
cc: ["gcc-10"]
1717
cxx: ["g++-10"]
1818
drafts: ["ON"]
19-
libzmq: ["4.3.4"]
19+
libzmq: ["4.3.5"]
2020
libzmqbuild: ["cmake"]
2121
include:
2222
# older libzmq and without draft
@@ -33,15 +33,15 @@ jobs:
3333
cc: "gcc-11"
3434
cxx: "g++-11"
3535
drafts: "OFF"
36-
libzmq: "4.3.4"
36+
libzmq: "4.3.5"
3737
libzmqbuild: "cmake"
3838
# coverage (gcc version should match gcov version)
3939
- os: "ubuntu-20.04"
4040
cppstd: "17"
4141
cc: "gcc-9"
4242
cxx: "g++-9"
4343
drafts: "ON"
44-
libzmq: "4.3.4"
44+
libzmq: "4.3.5"
4545
libzmqbuild: "cmake"
4646
coverage: "-DCOVERAGE=ON"
4747
aptinstall: "lcov"
@@ -51,15 +51,15 @@ jobs:
5151
cc: "clang-12"
5252
cxx: "clang++-12"
5353
drafts: "ON"
54-
libzmq: "4.3.4"
54+
libzmq: "4.3.5"
5555
libzmqbuild: "cmake"
5656
# macos
5757
- os: "macos-latest"
5858
cppstd: "17"
5959
cc: "clang"
6060
cxx: "clang++"
6161
drafts: "OFF"
62-
libzmq: "4.3.4"
62+
libzmq: "4.3.5"
6363
libzmqbuild: false
6464
brewinstall: "zeromq"
6565
# windows
@@ -68,15 +68,15 @@ jobs:
6868
cc: "msbuild"
6969
cxx: "msbuild"
7070
drafts: "ON"
71-
libzmq: "4.3.4"
71+
libzmq: "4.3.5"
7272
libzmqbuild: "cmake"
7373
platform: "-Ax64"
7474
- os: "windows-2022"
7575
cppstd: "20"
7676
cc: "msbuild"
7777
cxx: "msbuild"
7878
drafts: "ON"
79-
libzmq: "4.3.4"
79+
libzmq: "4.3.5"
8080
libzmqbuild: "cmake"
8181
platform: "-Ax64"
8282

@@ -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

-12
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)