From 9cdd363fa1b4b43564190c0a955c46606346f4b3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 9 Oct 2021 17:31:47 +0300 Subject: [PATCH] effects: Pass full name to kwin4_add_effect This way, it's more clear what target name is. --- src/effects/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/effects/CMakeLists.txt b/src/effects/CMakeLists.txt index ea2e19ae27..4a231c359e 100644 --- a/src/effects/CMakeLists.txt +++ b/src/effects/CMakeLists.txt @@ -58,11 +58,11 @@ endmacro() # Adds effect plugin with given name. Sources are given after the name macro(KWIN4_ADD_EFFECT name) - kwin4_add_effect_backend(kwin4_effect_${name} SHARED ${ARGN}) + kwin4_add_effect_backend(${name} SHARED ${ARGN}) - set_target_properties(kwin4_effect_${name} PROPERTIES VERSION 1.0.0 SOVERSION 1) - set_target_properties(kwin4_effect_${name} PROPERTIES OUTPUT_NAME ${KWIN_NAME}4_effect_${name}) - install(TARGETS kwin4_effect_${name} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) + set_target_properties(${name} PROPERTIES VERSION 1.0.0 SOVERSION 1) + set_target_properties(${name} PROPERTIES OUTPUT_NAME ${name}) + install(TARGETS ${name} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) endmacro() macro(KWIN4_ADD_EFFECT_MODULE name) @@ -150,7 +150,7 @@ set(kwin4_effect_builtins_sources qt5_add_resources(kwin4_effect_builtins_sources shaders.qrc) -kwin4_add_effect(builtins ${kwin4_effect_builtins_sources}) +kwin4_add_effect(kwin4_effect_builtins ${kwin4_effect_builtins_sources}) target_link_libraries(kwin4_effect_builtins PRIVATE kwin4_effect_blur kwin4_effect_colorpicker