Skip to content

Commit

Permalink
cmake: Fix cmake link property for static library
Browse files Browse the repository at this point in the history
In cmake, there are only LINK_PRIVATE and LINK_PUBLIC options (no LINK).
This patch fixes cmake link property (LINK_PRIVATE) for static library.
See: https://cmake.org/cmake/help/latest/command/target_link_libraries.html

[ Upstream commit 86a6c95 ]

Fixes: dd01031 ("Generate complete and sanitized static libraries")
Signed-off-by: Wonsup Yoon <pusnow@kaist.ac.kr>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
Pusnow authored and nmorey committed Feb 7, 2022
1 parent aa3c51c commit 39cc525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildlib/rdma_functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function(rdma_library DEST VERSION_SCRIPT SOVERSION VERSION)
# Create a static library
if (ENABLE_STATIC)
add_library(${DEST}-static STATIC ${ARGN})
target_link_libraries(${DEST}-static LINK ${COMMON_LIBS})
target_link_libraries(${DEST}-static LINK_PRIVATE ${COMMON_LIBS})
rdma_public_static_lib(${DEST} ${DEST}-static ${VERSION_SCRIPT})
endif()

Expand Down

0 comments on commit 39cc525

Please sign in to comment.