]> cloud.milkyroute.net Git - dolphin.git/commitdiff
make link with LLVM
authorRené Bertin <rjvbertin@gmail.com>
Tue, 12 Nov 2019 16:47:35 +0000 (17:47 +0100)
committerRené Bertin <rjvbertin@gmail.com>
Tue, 12 Nov 2019 16:47:35 +0000 (17:47 +0100)
This patch fixes a link failure when building with the LLVM toolchain
which does not discover the dependency on or pull in the private dolphin
library when linking dolphin itself.

BUG: 410237
Differential Revision: https://phabricator.kde.org/D22802

src/CMakeLists.txt

index 14701a1f41169e7042e8ab46273f22a7e8ec3cb6..648053014fefaf9fdc7bc84c273dd32efcd3d8a1 100644 (file)
@@ -300,9 +300,10 @@ ecm_add_app_icon(dolphin_SRCS ICONS ${ICONS_SRCS})
 kf5_add_kdeinit_executable(dolphin ${dolphin_SRCS})
 
 
-target_link_libraries(kdeinit_dolphin PRIVATE
-    dolphinstatic
+target_link_libraries(kdeinit_dolphin PUBLIC
     dolphinprivate
+    PRIVATE
+    dolphinstatic
     KF5::Crash
 )