Skip to content

Commit d84b75c

Browse files
author
Alexander Damian
committed
Merge branch 'master' of https://github.com/mfontanini/cppkafka
2 parents 0c11197 + df4eaa0 commit d84b75c

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

CMakeLists.txt

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@ set(CPPKAFKA_VERSION_MINOR 2)
77
set(CPPKAFKA_VERSION "${CPPKAFKA_VERSION_MAJOR}.${CPPKAFKA_VERSION_MINOR}")
88
set(RDKAFKA_MIN_VERSION 0x00090400)
99

10-
if(MSVC)
11-
# Don't always use Wall, since VC's /Wall is ridiculously verbose.
12-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3")
13-
14-
# Disable VC secure checks, since these are not really issues
15-
add_definitions("-D_CRT_SECURE_NO_WARNINGS=1")
16-
add_definitions("-D_SCL_SECURE_NO_WARNINGS=1")
17-
add_definitions("-DNOGDI=1")
18-
add_definitions("-DNOMINMAX=1")
19-
else()
20-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
10+
if (NOT CMAKE_CXX_FLAGS)
11+
# Set default compile flags for the project
12+
if(MSVC)
13+
# Don't always use Wall, since VC's /Wall is ridiculously verbose.
14+
set(CMAKE_CXX_FLAGS "/W3")
15+
16+
# Disable VC secure checks, since these are not really issues
17+
add_definitions("-D_CRT_SECURE_NO_WARNINGS=1")
18+
add_definitions("-D_SCL_SECURE_NO_WARNINGS=1")
19+
add_definitions("-DNOGDI=1")
20+
add_definitions("-DNOMINMAX=1")
21+
else()
22+
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
23+
endif()
2124
endif()
2225
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
2326

src/topic_partition_list.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ using std::vector;
3838
using std::set;
3939
using std::ostream;
4040
using std::string;
41+
using std::equal;
4142

4243
namespace cppkafka {
4344

0 commit comments

Comments
 (0)