mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-08-31 01:47:59 +00:00
Fix for old CMake versions
This commit is contained in:
@@ -14,7 +14,9 @@ endif()
|
||||
set(__INCLUDED_REMOVE_DUPLICATE_LINKED_LIBRARIES_MODULE TRUE)
|
||||
|
||||
function(remove_duplicate_linked_libraries target_name)
|
||||
get_target_property(LINK_LIBRARIES ${target_name} LINK_LIBRARIES)
|
||||
list(REMOVE_DUPLICATES LINK_LIBRARIES)
|
||||
set_target_properties(${target_name} PROPERTIES LINK_LIBRARIES "${LINK_LIBRARIES}")
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.5)
|
||||
get_target_property(LINK_LIBRARIES ${target_name} LINK_LIBRARIES)
|
||||
list(REMOVE_DUPLICATES LINK_LIBRARIES)
|
||||
set_target_properties(${target_name} PROPERTIES LINK_LIBRARIES "${LINK_LIBRARIES}")
|
||||
endif()
|
||||
endfunction()
|
Reference in New Issue
Block a user