Skip to content

Commit 0d2356f

Browse files
author
Alexander Damian
committed
Changed link libraries to PUBLIC so they get exported in the CppKafkaTargets.cmake
1 parent 11a6e42 commit 0d2356f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ add_library(${TARGET_NAME} ${CPPKAFKA_LIBRARY_TYPE} ${SOURCES})
4242
set_target_properties(${TARGET_NAME} PROPERTIES VERSION ${CPPKAFKA_VERSION}
4343
SOVERSION ${CPPKAFKA_VERSION})
4444
# In CMake >= 3.15 Boost::boost == Boost::headers
45-
target_link_libraries(${TARGET_NAME} PRIVATE RdKafka::rdkafka Boost::boost)
45+
target_link_libraries(${TARGET_NAME} PUBLIC RdKafka::rdkafka Boost::boost)
4646
if (WIN32)
4747
# On windows ntohs and related are in ws2_32
48-
target_link_libraries(${TARGET_NAME} PRIVATE ws2_32.lib)
48+
target_link_libraries(${TARGET_NAME} PUBLIC ws2_32.lib)
4949
endif()
5050

5151
# Install cppkafka target and specify all properties needed for the exported file

0 commit comments

Comments
 (0)