We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 081f8d8 commit 3238c94Copy full SHA for 3238c94
CMakeLists.txt
@@ -15,6 +15,7 @@ if(MSVC)
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")
21
endif()
@@ -48,6 +49,10 @@ else()
48
49
add_definitions("-DCPPKAFKA_STATIC=1")
50
51
52
+if (CPPKAFKA_RDKAFKA_STATIC_LIB)
53
+ add_definitions("-DLIBRDKAFKA_STATICLIB")
54
+endif()
55
+
56
# Look for Boost (just need boost.optional headers here)
57
find_package(Boost REQUIRED ${FIND_PACKAGE_QUIET})
58
find_package(RdKafka REQUIRED ${FIND_PACKAGE_QUIET})
0 commit comments