Skip to content

Commit 097184c

Browse files
author
Alexander Damian
committed
Added COMPONENT tags to the install targets. Also when installing TARGETS, the COMPONENT cannot appear after INCLUDES DESTINATION as it will be considered part of the destination.
1 parent bbc78f8 commit 097184c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,18 @@ endif()
5050
install(
5151
TARGETS ${TARGET_NAME}
5252
EXPORT ${TARGET_EXPORT_NAME}
53+
COMPONENT binaries
5354
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
5455
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
5556
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
5657
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
57-
COMPONENT dev
5858
)
5959

6060
# Install the exported file
6161
install(
6262
EXPORT "${TARGET_EXPORT_NAME}"
6363
NAMESPACE "${NAMESPACE}"
64+
COMPONENT config
6465
DESTINATION "${CPPKAFKA_CONFIG_DIR}"
6566
)
6667

@@ -91,4 +92,5 @@ write_basic_package_version_file(
9192
install(
9293
FILES "${CONFIG_FILE}" "${VERSION_FILE}" "${FIND_RDKAFKA_FILE}"
9394
DESTINATION "${CPPKAFKA_CONFIG_DIR}"
95+
COMPONENT config
9496
)

0 commit comments

Comments
 (0)