We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107cff7 commit 07b3c49Copy full SHA for 07b3c49
CMakeLists.txt
@@ -38,14 +38,13 @@ option(CPPKAFKA_BOOST_STATIC_LIBS "Link with Boost static libraries." ON)
38
option(CPPKAFKA_BOOST_USE_MULTITHREADED "Use Boost multithreaded libraries." ON)
39
option(CPPKAFKA_RDKAFKA_STATIC_LIB "Link with Rdkafka static library." OFF)
40
41
-# Determine if this is a 32 or 64 bit build
42
-string(FIND ${CMAKE_CXX_FLAGS} "-m64" BITNESS)
+math(EXPR BITS "8*${CMAKE_SIZEOF_VOID_P}")
43
44
# Properly set the output directory
45
-if (${BITNESS} EQUAL -1)
46
- set(LIBDIR "lib")
47
-else()
+if (${BITS} EQUAL 64)
48
set(LIBDIR "lib64")
+else()
+ set(LIBDIR "lib")
49
endif()
50
51
# Disable output from find_package macro
0 commit comments