mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
Fix SopaySDR library search when system cmake package present
This commit is contained in:
parent
6b2573d955
commit
a684d1a32b
@ -27,9 +27,14 @@ set_target_properties(soapysdrdevice
|
|||||||
|
|
||||||
target_link_libraries(soapysdrdevice
|
target_link_libraries(soapysdrdevice
|
||||||
${SOAPYSDR_LINK_LIBRARIES}
|
${SOAPYSDR_LINK_LIBRARIES}
|
||||||
|
${SOAPYSDR_LIBRARIES}
|
||||||
sdrbase
|
sdrbase
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_directories(soapysdrdevice PRIVATE
|
||||||
|
${SOAPYSDR_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
if(SOAPYSDR_EXTERNAL AND NOT LINUX)
|
if(SOAPYSDR_EXTERNAL AND NOT LINUX)
|
||||||
add_dependencies(soapysdrdevice soapysdr)
|
add_dependencies(soapysdrdevice soapysdr)
|
||||||
endif()
|
endif()
|
||||||
|
@ -56,9 +56,14 @@ target_link_libraries(${TARGET_NAME}
|
|||||||
${TARGET_LIB_GUI}
|
${TARGET_LIB_GUI}
|
||||||
swagger
|
swagger
|
||||||
${SOAPYSDR_LINK_LIBRARIES}
|
${SOAPYSDR_LINK_LIBRARIES}
|
||||||
|
${SOAPYSDR_LIBRARIES}
|
||||||
soapysdrdevice
|
soapysdrdevice
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_directories(${TARGET_NAME} PRIVATE
|
||||||
|
${SOAPYSDR_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
||||||
|
|
||||||
# Install debug symbols
|
# Install debug symbols
|
||||||
|
@ -56,9 +56,14 @@ target_link_libraries(${TARGET_NAME}
|
|||||||
${TARGET_LIB_GUI}
|
${TARGET_LIB_GUI}
|
||||||
swagger
|
swagger
|
||||||
${SOAPYSDR_LINK_LIBRARIES}
|
${SOAPYSDR_LINK_LIBRARIES}
|
||||||
|
${SOAPYSDR_LIBRARIES}
|
||||||
soapysdrdevice
|
soapysdrdevice
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_directories(${TARGET_NAME} PRIVATE
|
||||||
|
${SOAPYSDR_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
||||||
|
|
||||||
# Install debug symbols
|
# Install debug symbols
|
||||||
|
Loading…
Reference in New Issue
Block a user