Skip to content

Commit 268400b

Browse files
committed
build: fix typos in CMakeLists.txt
- Redundant comma (that always forces static build) - Incorrect name in find_package (should be RDKAFKA instead of RdKafka).
1 parent 178a22a commit 268400b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${MY_C_FLAGS} -ggdb3")
1212

1313
find_package(Tarantool REQUIRED)
1414

15-
set(STATIC_BUILD "OFF", CACHE BOOL "Link dependencies statically?")
15+
set(STATIC_BUILD "OFF" CACHE BOOL "Link dependencies statically?")
1616
set(WITH_OPENSSL_1_1 "OFF" CACHE BOOL "Require openssl version >= 1.1?")
1717

1818
if (WITH_OPENSSL_1_1)
@@ -43,8 +43,7 @@ if(STATIC_BUILD)
4343

4444
set(RDKAFKA_LIBRARY ${RDKAFKA_LIBRARY} librdkafka_static)
4545
else()
46-
set(RDKAFKA_FIND_REQUIRED ON)
47-
find_package(RdKafka)
46+
find_package(RDKAFKA REQUIRED)
4847
# Link RdKafka transitive dependencies manually
4948
set(RDKAFKA_LIBRARY ${RDKAFKA_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY})
5049
endif()

0 commit comments

Comments
 (0)