Skip to content

Commit

Permalink
Fix mfontanini#83: define LIBRDKAFKA_STATICLIB
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpas committed Jul 3, 2018
1 parent 081f8d8 commit 40cb08e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 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
1 change: 1 addition & 0 deletions cmake/FindRdKafka.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Override default CMAKE_FIND_LIBRARY_SUFFIXES
if (CPPKAFKA_RDKAFKA_STATIC_LIB)
if (MSVC)
add_definitions("-DLIBRDKAFKA_STATICLIB")
set(RDKAFKA_SUFFIX lib)
else()
set(RDKAFKA_SUFFIX a)
Expand Down

0 comments on commit 40cb08e

Please sign in to comment.