mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
a2326efa37
This reverts commit2996a7f29c
, reversing changes made to10df3bd4b3
.
9 lines
385 B
CMake
9 lines
385 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} PUBLIC ${lib})
|
|
endforeach(lib)
|
|
endfunction()
|