From 3eb6dcbcd325cbcd3a45fb530d97319531506089 Mon Sep 17 00:00:00 2001 From: Julius Michaelis Date: Sat, 23 Sep 2017 16:52:33 +0200 Subject: [PATCH] CMakeLists.txt: stop using add_backward and qt5_use_modules (the former adds libraries multiple times, the latter is deprecated) --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 650122019..fa2f0a5cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1186,11 +1186,11 @@ if(NOT HEADLESS_ONLY) if(WITH_QT_EDITOR) set_target_properties(openclonk PROPERTIES COMPILE_DEFINITIONS WITH_QT_EDITOR) - qt5_use_modules(openclonk Widgets) + target_link_libraries(openclonk Qt5::Widgets) endif() if(HAVE_BACKWARD) - add_backward(openclonk) + target_link_libraries(openclonk Backward::Backward) endif() endif() @@ -1224,7 +1224,7 @@ if(USE_COCOA) target_link_libraries(openclonk-server "-framework Cocoa") endif() if(HAVE_BACKWARD) - add_backward(openclonk-server) + target_link_libraries(openclonk-server Backward::Backward) endif() if(GTK3_FOUND AND GTK3_gtksourceview_FOUND AND NOT HEADLESS_ONLY)