mirror of https://github.com/oxen-io/lokinet
Add cmake module to target a library as 'system', and fix a few warnings
parent
50def75345
commit
4143472a17
@ -0,0 +1,9 @@
|
||||
# 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()
|
Loading…
Reference in New Issue