Fix clean build

libkdecorations is part of kde-workspace so calling find_library() cannot
work on a clean build since it has not been installed yet. CMake knows
about it anyway since its part of kde-workspace, so it can use it without
finding it.

CCMAIL: hugo@oxygen-icons.org
This commit is contained in:
Aurélien Gâteau 2013-11-13 10:11:27 +01:00
parent 0ad6811684
commit 47c12347ea

View file

@ -26,8 +26,7 @@ add_library(kwin3_oxygen MODULE ${kwin_oxygen_SRCS})
target_link_libraries(kwin3_oxygen Qt5::Widgets )
target_link_libraries(kwin3_oxygen KF5::KI18n KF5::KWindowSystem KF5::KStyle)
find_library( KDECORATIONS_LIB NAMES kdecorations )
target_link_libraries(kwin3_oxygen ${KDECORATIONS_LIB})
target_link_libraries(kwin3_oxygen kdecorations)
target_link_libraries(kwin3_oxygen oxygenstyle)