Skip to content

Commit 3238c94

Browse files
dmpasmfontanini
authored andcommitted
Fix #83: define LIBRDKAFKA_STATICLIB (#99)
* Fix #83: define LIBRDKAFKA_STATICLIB * Moved LIBRDKAFKA_STATICLIB definition
1 parent 081f8d8 commit 3238c94

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ if(MSVC)
1515
add_definitions("-D_CRT_SECURE_NO_WARNINGS=1")
1616
add_definitions("-D_SCL_SECURE_NO_WARNINGS=1")
1717
add_definitions("-DNOGDI=1")
18+
add_definitions("-DNOMINMAX=1")
1819
else()
1920
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
2021
endif()
@@ -48,6 +49,10 @@ else()
4849
add_definitions("-DCPPKAFKA_STATIC=1")
4950
endif()
5051

52+
if (CPPKAFKA_RDKAFKA_STATIC_LIB)
53+
add_definitions("-DLIBRDKAFKA_STATICLIB")
54+
endif()
55+
5156
# Look for Boost (just need boost.optional headers here)
5257
find_package(Boost REQUIRED ${FIND_PACKAGE_QUIET})
5358
find_package(RdKafka REQUIRED ${FIND_PACKAGE_QUIET})

0 commit comments

Comments
 (0)