Skip to content

Commit

Permalink
Fix #83: define LIBRDKAFKA_STATICLIB (#99)
Browse files Browse the repository at this point in the history
* Fix #83: define LIBRDKAFKA_STATICLIB

* Moved LIBRDKAFKA_STATICLIB definition
  • Loading branch information
dmpas authored and mfontanini committed Jul 4, 2018
1 parent 081f8d8 commit 3238c94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if(MSVC)
add_definitions("-D_CRT_SECURE_NO_WARNINGS=1")
add_definitions("-D_SCL_SECURE_NO_WARNINGS=1")
add_definitions("-DNOGDI=1")
add_definitions("-DNOMINMAX=1")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
endif()
Expand Down Expand Up @@ -48,6 +49,10 @@ else()
add_definitions("-DCPPKAFKA_STATIC=1")
endif()

if (CPPKAFKA_RDKAFKA_STATIC_LIB)
add_definitions("-DLIBRDKAFKA_STATICLIB")
endif()

# Look for Boost (just need boost.optional headers here)
find_package(Boost REQUIRED ${FIND_PACKAGE_QUIET})
find_package(RdKafka REQUIRED ${FIND_PACKAGE_QUIET})
Expand Down

0 comments on commit 3238c94

Please sign in to comment.