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

Fixes: dd01031 ("Generate complete and sanitized static libraries")
Signed-off-by: Wonsup Yoon <pusnow@kaist.ac.kr>
  • Loading branch information
Pusnow committed Feb 7, 2022
1 parent f1a1a46 commit 86a6c95
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 86a6c95

Please sign in to comment.