-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ANO linking warning #463
Fix ANO linking warning #463
Conversation
@cliffburdick can you review? |
@@ -83,8 +83,10 @@ target_compile_options(advanced_network_rx PUBLIC ${DPDK_CFLAGS}) | |||
target_compile_options(advanced_network_tx PUBLIC ${DPDK_CFLAGS}) | |||
|
|||
target_link_libraries(advanced_network_common PUBLIC holoscan::core) | |||
target_link_libraries(advanced_network_common PUBLIC -L${DPDK_LIBRARY_DIRS} ${DPDK_LIBRARIES} ${DPDK_EXTRA_LIBS}) | |||
target_link_libraries(advanced_network_common PUBLIC -L${DOCA_LIBRARY_DIRS} -ldoca_gpunetio libdoca_gpunetio_device.a -ldoca_common -ldoca_argp -ldoca_eth -ldoca_flow) | |||
target_link_directories(advanced_network_common PUBLIC ${DPDK_LIBRARY_DIRS}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just combine the DOCA and DPDK libs into a single line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consolidating a couple lines
929fb3e
to
25862d1
Compare
@cliffburdick are we good to merge? |
Yes, sorry, just saw it was addressed. |
Can you approve the review? |
d27f105
to
7383789
Compare
@cliffburdick, I went ahead and rebased - this should be ready for review. Thanks! |
Currently, when building an app that uses the Advanced Network Operator (ANO), CMake throws some warnings: ``` CMake Warning at operators/advanced_network/CMakeLists.txt:87 (target_link_libraries): Target "<target>" requests linking to directory "/usr/lib/x86_64-linux-gnu". Targets may link only to libraries. CMake is dropping the item. ``` Like it says, there are directories being passed into target_link_libraries with -L which is not supported. Instead, let's use target_link_directories which is already being used in the ANO CMakeLists.txt file to pass those DPDK and DOCA directories. Signed-off-by: John Moon <john.moon@vts-i.com>
7383789
to
cdb682e
Compare
@jjomier, I just rebased again. Anything else blocking merge? |
Currently, when building an app that uses the Advanced Network Operator (ANO), CMake throws some warnings: ``` CMake Warning at operators/advanced_network/CMakeLists.txt:87 (target_link_libraries): Target "<target>" requests linking to directory "/usr/lib/x86_64-linux-gnu". Targets may link only to libraries. CMake is dropping the item. ``` Like it says, there are directories being passed into target_link_libraries with -L which is not supported. Instead, let's use target_link_directories which is already being used in the ANO CMakeLists.txt file to pass those DPDK and DOCA directories. Signed-off-by: John Moon <john.moon@vts-i.com>
Currently, when building an app that uses the Advanced Network Operator (ANO), CMake throws some warnings: ``` CMake Warning at operators/advanced_network/CMakeLists.txt:87 (target_link_libraries): Target "<target>" requests linking to directory "/usr/lib/x86_64-linux-gnu". Targets may link only to libraries. CMake is dropping the item. ``` Like it says, there are directories being passed into target_link_libraries with -L which is not supported. Instead, let's use target_link_directories which is already being used in the ANO CMakeLists.txt file to pass those DPDK and DOCA directories. Signed-off-by: John Moon <john.moon@vts-i.com> Signed-off-by: Rony Rado <rrado@nvidia.com>
Currently, when building an app that uses the Advanced Network Operator (ANO), CMake throws some warnings:
Like it says, there are directories being passed into target_link_libraries with -L which is not supported.
Instead, let's use target_link_directories which is already being used in the ANO CMakeLists.txt file to pass those DPDK and DOCA directories.