Commit fc35d851 authored by Arjen Hiemstra's avatar Arjen Hiemstra

Use INTERFACE IMPORTED target type instead of ALIAS for compatibility targets

Summary: Apparently IMPORTED_GLOBAL is a 3.11 feature and Neon uses 3.10

Test Plan: Use CMake 3.10, plasma-workspace compiles again.

Reviewers: #plasma, ngraham, kmaterka

Reviewed By: ngraham, kmaterka

Subscribers: kmaterka, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D29529
parent cc789f3a
......@@ -6,8 +6,11 @@ include(CMakeFindDependencyMacro)
find_dependency(KSysGuard REQUIRED)
macro(add_sysguard_target _target)
set_target_properties(KSysGuard::${_target} PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(KF5::${_target} ALIAS KSysGuard::${_target})
add_library(KF5::${_target} INTERFACE IMPORTED)
set_target_properties(KF5::${_target} PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES $<TARGET_PROPERTY:KSysGuard::${_target},INTERFACE_INCLUDE_DIRECTORIES>
INTERFACE_LINK_LIBRARIES KSysGuard::${_target}
)
endmacro()
add_sysguard_target(SysGuard)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment