29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
|
From 14d16524ae0233518111ae7631f540178bc25dcf Mon Sep 17 00:00:00 2001
|
||
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
||
|
Date: Wed, 25 Dec 2019 14:15:51 +0100
|
||
|
Subject: [PATCH] Use target_link_libraries instead of target_link_options for
|
||
|
FUSE3_LDFLAGS
|
||
|
|
||
|
target_link_options got added in CMake 3.13, which is not always available.
|
||
|
---
|
||
|
CMakeLists.txt | 3 +--
|
||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 8fe1df9..94c3323 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -55,8 +55,7 @@ ecm_qt_declare_logging_category(KIOFUSE_SOURCES
|
||
|
add_executable(kio-fuse ${KIOFUSE_SOURCES})
|
||
|
target_include_directories(kio-fuse PRIVATE ${FUSE3_INCLUDE_DIRS})
|
||
|
target_compile_definitions(kio-fuse PRIVATE FUSE_USE_VERSION=31 ${FUSE3_CFLAGS_OTHER})
|
||
|
-target_link_options(kio-fuse PRIVATE ${FUSE3_LDFLAGS})
|
||
|
-target_link_libraries(kio-fuse PRIVATE Qt5::Core KF5::KIOCore ${FUSE3_LIBRARIES})
|
||
|
+target_link_libraries(kio-fuse PRIVATE Qt5::Core KF5::KIOCore ${FUSE3_LIBRARIES} ${FUSE3_LDFLAGS})
|
||
|
install(TARGETS kio-fuse DESTINATION ${KDE_INSTALL_FULL_LIBEXECDIR})
|
||
|
install(FILES kio-fuse-tmpfiles.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/tmpfiles.d)
|
||
|
kdbusaddons_generate_dbus_service_file(kio-fuse org.kde.KIOFuse ${KDE_INSTALL_FULL_LIBEXECDIR})
|
||
|
--
|
||
|
2.23.0
|
||
|
|