mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-14 17:04:54 +00:00
* Fix #83: define LIBRDKAFKA_STATICLIB * Moved LIBRDKAFKA_STATICLIB definition
This commit is contained in:
committed by
Matias Fontanini
parent
081f8d80a0
commit
3238c94f43
@@ -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()
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user