mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
378 B
CMake
10 lines
378 B
CMake
# This adds a dependency as a "system" dep - e.g -isystem
|
|
function(target_link_libraries_system target)
|
|
set(libs ${ARGN})
|
|
foreach(lib ${libs})
|
|
get_target_property(lib_include_dirs ${lib} INTERFACE_INCLUDE_DIRECTORIES)
|
|
target_include_directories(${target} SYSTEM PUBLIC ${lib_include_dirs})
|
|
target_link_libraries(${target} ${lib})
|
|
endforeach(lib)
|
|
endfunction()
|