summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2015-04-17 17:55:02 +0200
committerAleix Pol <[email protected]>2015-04-17 17:55:02 +0200
commit8129473921bf3129bd7b34a87392425ed6cabc1c (patch)
treef2f786ae6420bedfdcca684c90e9b426c2e22ac1
parentd09491dec31e8109f719cdfeda4b007b8e371a1b (diff)
Simplify cmake code that specifies dependencies
-rw-r--r--src/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8e5ca45..43a9966 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -155,11 +155,9 @@ ki18n_wrap_ui(konsoleprivate_SRCS ColorSchemeEditor.ui
settings/GeneralSettings.ui
settings/TabBarSettings.ui)
-add_library(konsoleprivate SHARED ${konsoleprivate_SRCS})
+add_library(konsoleprivate ${konsoleprivate_SRCS})
generate_export_header(konsoleprivate BASE_NAME konsoleprivate)
-target_link_libraries(konsoleprivate ${konsole_LIBS}
-)
-target_link_libraries(konsoleprivate LINK_INTERFACE_LIBRARIES ${konsole_LIBS})
+target_link_libraries(konsoleprivate PUBLIC ${konsole_LIBS})
set_target_properties(konsoleprivate PROPERTIES
VERSION ${KONSOLEPRIVATE_VERSION_STRING}