File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,18 @@ matrix:
30
30
# GCC default, draft disabled, default libzmq (defined in ci_build.sh)
31
31
- os : linux
32
32
33
- # GCC 7, draft enabled (default), latest libzmq (default)
33
+ # GCC 6, draft disabled (default), latest libzmq (default)
34
+ - os : linux
35
+ addons :
36
+ apt :
37
+ sources :
38
+ - ubuntu-toolchain-r-test
39
+ packages :
40
+ - g++-6
41
+ env :
42
+ - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
43
+
44
+ # GCC 7, draft enabled, latest libzmq (default)
34
45
- os : linux
35
46
addons :
36
47
apt :
Original file line number Diff line number Diff line change @@ -19,11 +19,7 @@ if (ZeroMQ_FOUND AND (NOT TARGET libzmq OR NOT TARGET libzmq-static))
19
19
message (FATAL_ERROR "ZeroMQ version not supported!" )
20
20
endif ()
21
21
22
- if (EXISTS "${CMAKE_SOURCE_DIR} /.git" )
23
- OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" ON )
24
- else ()
25
- OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" OFF )
26
- endif ()
22
+ OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" OFF )
27
23
if (ENABLE_DRAFTS )
28
24
ADD_DEFINITIONS (-DZMQ_BUILD_DRAFT_API )
29
25
set (pkg_config_defines "-DZMQ_BUILD_DRAFT_API=1" )
Original file line number Diff line number Diff line change 3
3
#include < gtest/gtest.h>
4
4
#include < zmq.hpp>
5
5
6
- #if defined(ZMQ_CPP11)
6
+ #if defined(ZMQ_BUILD_DRAFT_API) && defined( ZMQ_CPP11)
7
7
#include < array>
8
8
9
9
class loopback_ip4_binder
You can’t perform that action at this time.
0 commit comments