-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from boscore/release/2.0.x
Release/2.0.x
- Loading branch information
Showing
73 changed files
with
3,975 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Override default CMAKE_FIND_LIBRARY_SUFFIXES | ||
if (CPPKAFKA_SHARED_LIB) | ||
set(CPPKAFKA_SUFFIX so) | ||
else() | ||
set(CPPKAFKA_SUFFIX a) | ||
endif() | ||
message(STATUS "Cppkafka finding .${CPPKAFKA_SUFFIX} library") | ||
|
||
FIND_PATH( | ||
CPPKAFKA_INCLUDE_DIR cppkafka.h | ||
PATH "/usr/local" | ||
PATH_SUFFIXES "" "cppkafka") | ||
MARK_AS_ADVANCED(CPPKAFKA_INCLUDE_DIR) | ||
|
||
SET(CPPKAFKA_INCLUDE_DIR ${CPPKAFKA_INCLUDE_DIR}) | ||
|
||
FIND_LIBRARY( | ||
CPPKAFKA_LIBRARY | ||
NAMES cppkafka.${CPPKAFKA_SUFFIX} libcppkafka.${CPPKAFKA_SUFFIX} | ||
HINTS ${CPPKAFKA_INCLUDE_DIR}/.. | ||
PATH_SUFFIXES lib${LIB_SUFFIX}) | ||
MARK_AS_ADVANCED(CPPKAFKA_LIBRARY) | ||
|
||
SET(CPPKAFKA_LIBRARY ${CPPKAFKA_LIBRARY}) | ||
message(STATUS "Cppkafka found ${CPPKAFKA_LIBRARY}") | ||
|
||
include(FindPackageHandleStandardArgs) | ||
SET(_CPPKAFKA_REQUIRED_VARS CPPKAFKA_INCLUDE_DIR CPPKAFKA_LIBRARY) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Cppkafka DEFAULT_MSG ${_CPPKAFKA_REQUIRED_VARS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.