summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-25 15:06:02 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-25 15:06:39 (GMT)
commite19e8be89917c5e1c9d32885850776cb7a35f2aa (patch)
treeb47034cd3f46a6c6949142ca2af028ec1a5f9e56
parent3c5448b5215b0dd257fd198ee139d1feab8d59c1 (diff)
Fix link library call scope
o5mreader dependency is independent of ECM/KDE. Fixes plugin loading on Android.
-rw-r--r--src/plugins/runner/osm/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/runner/osm/CMakeLists.txt b/src/plugins/runner/osm/CMakeLists.txt
index 2272c75..d728683 100644
--- a/src/plugins/runner/osm/CMakeLists.txt
+++ b/src/plugins/runner/osm/CMakeLists.txt
@@ -33,7 +33,7 @@ set( osm_SRCS
)
marble_add_plugin( OsmPlugin ${osm_SRCS} ${osm_writers_SRCS} ${osm_translators_SRCS} )
-
+target_link_libraries(OsmPlugin o5mreader)
find_package(ECM ${REQUIRED_ECM_VERSION} QUIET)
if(NOT ECM_FOUND)
@@ -49,8 +49,6 @@ if(NOT KF5_FOUND)
return()
endif()
-target_link_libraries(OsmPlugin o5mreader)
-
# register marble part as handler
# install again once part is fixed to load and show the passed file
# install(FILES marble_part_osm.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})