aboutsummaryrefslogtreecommitdiff
path: root/cmake/linking.cmake
blob: 0de81d893568dab9f29333285b5eaf0cd33c0617 (plain)
1
2
3
4
5
6
7
8
9
10
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 PRIVATE ${lib_include_dirs})
		target_link_libraries(${target} ${lib})
	endforeach(lib)
endfunction(target_link_libraries_system)