Skip to content

Commit

Permalink
Use limesuiteng imported cmake target for linking
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonaitis committed Jul 26, 2024
1 parent 0c24045 commit 586d7c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,7 @@ endif(ENABLE_LIMESDR)

# LimeSuiteNG
if(ENABLE_LIMESUITENG)
find_package(limesuiteng)
if(limesuiteng_FOUND)
include_directories(${limesuiteng_INCLUDE_DIRS})
link_directories(${LIMESUITENG_LIBRARY_DIRS})
endif(limesuiteng_FOUND)
find_package(limesuiteng) # uses imported cmake targets
endif(ENABLE_LIMESUITENG)

# Soapy
Expand Down
2 changes: 1 addition & 1 deletion lib/src/phy/rf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ if(RF_FOUND)
add_library(srsran_rf_limesuiteng STATIC ${SOURCES_LIMESUITENG})
list(APPEND STATIC_PLUGINS srsran_rf_limesuiteng)
endif (ENABLE_RF_PLUGINS)
target_link_libraries(srsran_rf_limesuiteng srsran_rf_utils srsran_phy ${limesuiteng_LIBRARIES} limesuiteng)
target_link_libraries(srsran_rf_limesuiteng srsran_rf_utils srsran_phy limesuiteng::limesuiteng)
install(TARGETS srsran_rf_limesuiteng DESTINATION ${LIBRARY_DIR} OPTIONAL)
endif (limesuiteng_FOUND AND ENABLE_LIMESUITENG)

Expand Down

0 comments on commit 586d7c0

Please sign in to comment.