File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,15 @@ option(CPPKAFKA_BOOST_STATIC_LIBS "Link with Boost static libraries." ON)
3838option (CPPKAFKA_BOOST_USE_MULTITHREADED "Use Boost multithreaded libraries." ON )
3939option (CPPKAFKA_RDKAFKA_STATIC_LIB "Link with Rdkafka static library." OFF )
4040
41+ math (EXPR BITS "8*${CMAKE_SIZEOF_VOID_P} " )
42+
43+ # Properly set the output directory
44+ if (${BITS} EQUAL 64)
45+ set (LIBDIR "lib64" )
46+ else ()
47+ set (LIBDIR "lib" )
48+ endif ()
49+
4150# Disable output from find_package macro
4251if (NOT CPPKAFKA_CMAKE_VERBOSE)
4352 set (FIND_PACKAGE_QUIET QUIET )
Original file line number Diff line number Diff line change 11prefix=@CMAKE_INSTALL_PREFIX@
22exec_prefix=${prefix}
3- libdir=${prefix}/lib
4- sharedlibdir=${prefix}/lib
3+ libdir=${prefix}/@LIBDIR@
4+ sharedlibdir=${prefix}/@LIBDIR@
55includedir=${prefix}/include
66
77Name: cppkafka
88Url: https://github.com/mfontanini/cppkafka
99Description: C++ wrapper library on top of RdKafka
1010Version: @CPPKAFKA_VERSION@
11- Requires: rdkafka >= 0.9.4 boost
12- Requires.private:
13- Libs: -L${libdir} -L${sharedlibdir} -L@RDKAFKA_ROOT_DIR@/lib - lcppkafka -lrdkafka -lpthread -lrt -lssl -lcrypto -ldl -lz
14- Cflags: -I${includedir} -I${includedir}/cppkafka -I@RDKAFKA_INCLUDE_DIR@ -I@Boost_INCLUDE_DIRS@
11+ Requires:
12+ Requires.private: rdkafka >= 0.9.4, boost
13+ Libs: -L${libdir} -L${sharedlibdir} -lcppkafka
14+ Cflags: -I${includedir} -I${includedir}/cppkafka
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ target_include_directories(cppkafka PUBLIC ${PROJECT_SOURCE_DIR}/include)
4343
4444install (
4545 TARGETS cppkafka
46- LIBRARY DESTINATION lib
47- ARCHIVE DESTINATION lib
46+ LIBRARY DESTINATION ${LIBDIR}
47+ ARCHIVE DESTINATION ${LIBDIR}
4848 COMPONENT dev
4949)
5050
You can’t perform that action at this time.
0 commit comments