File set-cmake_min_req.patch of Package kdebindings-smokekde
From: David Faure <faure@kde.org>
Date: Mon, 27 Jul 2015 07:56:55 +0000
Subject: set cmake_min_req to 2.8.9 to enable the new policies; fix build accordingly
X-Git-Url: http://quickgit.kde.org/?p=smokekde.git&a=commitdiff&h=53cf48e766d64babd0561bd9bf1d1528f380f41c
---
set cmake_min_req to 2.8.9 to enable the new policies; fix build accordingly
---
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required(VERSION 2.8.9)
project(SmokeKDE)
find_package(KDE4 REQUIRED)
--- a/akonadi/CMakeLists.txt
+++ b/akonadi/CMakeLists.txt
@@ -42,7 +42,7 @@
kde4_add_library(smokeakonadi SHARED ${smokeakonadi_LIB_SRCS})
-target_link_libraries(smokeakonadi
+target_link_libraries(smokeakonadi LINK_PRIVATE
${KDEPIMLIBS_AKONADI_LIBS}
${KDEPIMLIBS_AKONADI_CONTACT_LIBS}
${KDEPIMLIBS_AKONADI_KABC_LIBS}
--- a/attica/CMakeLists.txt
+++ b/attica/CMakeLists.txt
@@ -24,7 +24,7 @@
kde4_add_library(smokeattica SHARED ${smokeattica_LIB_SRCS})
-target_link_libraries(smokeattica
+target_link_libraries(smokeattica LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${LIBATTICA_LIBRARIES}
--- a/kate/CMakeLists.txt
+++ b/kate/CMakeLists.txt
@@ -42,7 +42,7 @@
kde4_add_library(smokekate SHARED ${smokekate_LIB_SRCS})
-target_link_libraries(smokekate
+target_link_libraries(smokekate LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${KDE4_KDECORE_LIBS}
--- a/kdecore/CMakeLists.txt
+++ b/kdecore/CMakeLists.txt
@@ -65,7 +65,7 @@
kde4_add_library(smokekdecore SHARED ${smokekdecore_LIB_SRCS})
-target_link_libraries(smokekdecore
+target_link_libraries(smokekdecore LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${QT_QTDBUS_LIBRARY}
--- a/kdeui/CMakeLists.txt
+++ b/kdeui/CMakeLists.txt
@@ -64,7 +64,7 @@
kde4_add_library(smokekdeui SHARED ${smokekdeui_LIB_SRCS})
-target_link_libraries(smokekdeui
+target_link_libraries(smokekdeui LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${QT_QTDBUS_LIBRARY}
--- a/kfile/CMakeLists.txt
+++ b/kfile/CMakeLists.txt
@@ -28,7 +28,7 @@
# add_dependencies(smokekfile smokeqt)
-target_link_libraries(smokekfile
+target_link_libraries(smokekfile LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTXML_LIBRARY}
${QT_QTGUI_LIBRARY}
--- a/khtml/CMakeLists.txt
+++ b/khtml/CMakeLists.txt
@@ -65,7 +65,7 @@
add_dependencies(smokekhtml ${SMOKE_QTCORE_LIBRARY} smokekdecore)
-target_link_libraries(smokekhtml
+target_link_libraries(smokekhtml LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${KDE4_KDECORE_LIBS}
--- a/kio/CMakeLists.txt
+++ b/kio/CMakeLists.txt
@@ -64,7 +64,7 @@
kde4_add_library(smokekio SHARED ${smokekio_LIB_SRCS})
-target_link_libraries(smokekio
+target_link_libraries(smokekio LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${QT_QTDBUS_LIBRARY}
--- a/knewstuff2/CMakeLists.txt
+++ b/knewstuff2/CMakeLists.txt
@@ -28,7 +28,7 @@
# add_dependencies(smokeknewstuff2 smokeqt)
-target_link_libraries(smokeknewstuff2
+target_link_libraries(smokeknewstuff2 LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTXML_LIBRARY}
${QT_QTGUI_LIBRARY}
--- a/knewstuff3/CMakeLists.txt
+++ b/knewstuff3/CMakeLists.txt
@@ -28,7 +28,7 @@
# add_dependencies(smokeknewstuff3 smokeqt)
-target_link_libraries(smokeknewstuff3
+target_link_libraries(smokeknewstuff3 LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTXML_LIBRARY}
${QT_QTGUI_LIBRARY}
--- a/kparts/CMakeLists.txt
+++ b/kparts/CMakeLists.txt
@@ -66,7 +66,7 @@
# add_dependencies(smokekparts smokeqt)
-target_link_libraries(smokekparts
+target_link_libraries(smokekparts LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTXML_LIBRARY}
${QT_QTGUI_LIBRARY}
--- a/ktexteditor/CMakeLists.txt
+++ b/ktexteditor/CMakeLists.txt
@@ -42,7 +42,7 @@
kde4_add_library(smokektexteditor SHARED ${smokektexteditor_LIB_SRCS})
-target_link_libraries(smokektexteditor
+target_link_libraries(smokektexteditor LINK_PRIVATE
${QT_QTNETWORK_LIBRARY}
${QT_QTSQL_LIBRARY}
${QT_QTOPENGL_LIBRARY}
--- a/kutils/CMakeLists.txt
+++ b/kutils/CMakeLists.txt
@@ -28,7 +28,7 @@
# add_dependencies(smokekutils smokeqt)
-target_link_libraries(smokekutils
+target_link_libraries(smokekutils LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTXML_LIBRARY}
${QT_QTGUI_LIBRARY}
--- a/nepomuk/CMakeLists.txt
+++ b/nepomuk/CMakeLists.txt
@@ -43,7 +43,7 @@
kde4_add_library(smokenepomuk SHARED ${smokenepomuk_LIB_SRCS})
-target_link_libraries(smokenepomuk
+target_link_libraries(smokenepomuk LINK_PRIVATE
${NEPOMUK_LIBRARIES}
${SOPRANO_LIBRARIES}
${KDE4_KDECORE_LIBS}
--- a/nepomukquery/CMakeLists.txt
+++ b/nepomukquery/CMakeLists.txt
@@ -25,11 +25,10 @@
kde4_add_library(smokenepomukquery SHARED ${smokenepomukquery_LIB_SRCS})
-target_link_libraries(smokenepomukquery
+target_link_libraries(smokenepomukquery LINK_PRIVATE
${NEPOMUK_LIBRARIES}
${NEPOMUK_QUERY_LIBRARIES}
${SOPRANO_LIBRARIES}
- nepomukquery
${KDE4_KDECORE_LIBS}
${QT_QTGUI_LIBRARY}
${SMOKE_QTCORE_LIBRARY}
--- a/okular/CMakeLists.txt
+++ b/okular/CMakeLists.txt
@@ -44,7 +44,7 @@
kde4_add_library(smokeokular SHARED ${smokeokular_LIB_SRCS})
-target_link_libraries(smokeokular
+target_link_libraries(smokeokular LINK_PRIVATE
${QT_CORE_LIBRARY}
${QT_GUI_LIBRARY}
${KDE4_KDECORE_LIBS}
--- a/plasma/CMakeLists.txt
+++ b/plasma/CMakeLists.txt
@@ -41,7 +41,7 @@
kde4_add_library(smokeplasma SHARED ${smokeplasma_LIB_SRCS})
-target_link_libraries(smokeplasma
+target_link_libraries(smokeplasma LINK_PRIVATE
${KDE4_KDEUI_LIBS}
${KDE4_PLASMA_LIBS}
smokekdecore
@@ -51,7 +51,7 @@
)
if(KDE_VERSION VERSION_LESS "4.2.0")
- target_link_libraries(smokeplasma
+ target_link_libraries(smokeplasma LINK_PRIVATE
${PLASMA_LIBS}
)
endif(KDE_VERSION VERSION_LESS "4.2.0")
--- a/solid/CMakeLists.txt
+++ b/solid/CMakeLists.txt
@@ -49,7 +49,7 @@
kde4_add_library(smokesolid SHARED ${smokesolid_LIB_SRCS})
-target_link_libraries(smokesolid
+target_link_libraries(smokesolid LINK_PRIVATE
${QT_QTCORE_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${QT_QTGUI_LIBRARY}
--- a/soprano/CMakeLists.txt
+++ b/soprano/CMakeLists.txt
@@ -42,7 +42,8 @@
ENDIF(CMAKE_CXX_FLAGS MATCHES "-fvisibility")
add_library(smokesoprano SHARED ${smokesoprano_LIB_SRCS})
-target_link_libraries(smokesoprano ${SMOKE_QTCORE_LIBRARY} ${QT_QTCORE_LIBRARY} ${SOPRANO_LIBRARIES} ${SMOKE_BASE_LIBRARY})
+target_link_libraries(smokesoprano LINK_PRIVATE
+ ${SMOKE_QTCORE_LIBRARY} ${QT_QTCORE_LIBRARY} ${SOPRANO_LIBRARIES} ${SMOKE_BASE_LIBRARY})
set_target_properties(smokesoprano PROPERTIES VERSION 3.0.0 SOVERSION 3 )
--- a/sopranoclient/CMakeLists.txt
+++ b/sopranoclient/CMakeLists.txt
@@ -25,7 +25,7 @@
ENDIF(CMAKE_CXX_FLAGS MATCHES "-fvisibility")
add_library(smokesopranoclient SHARED ${smokesopranoclient_LIB_SRCS})
-target_link_libraries( smokesopranoclient
+target_link_libraries( smokesopranoclient LINK_PRIVATE
${SMOKE_QTCORE_LIBRARY}
smokesoprano
${QT_QTCORE_LIBRARY}
--- a/sopranoserver/CMakeLists.txt
+++ b/sopranoserver/CMakeLists.txt
@@ -25,7 +25,7 @@
ENDIF(CMAKE_CXX_FLAGS MATCHES "-fvisibility")
add_library(smokesopranoserver SHARED ${smokesopranoserver_LIB_SRCS})
-target_link_libraries( smokesopranoserver
+target_link_libraries( smokesopranoserver LINK_PRIVATE
${SMOKE_QTCORE_LIBRARY}
smokesoprano
${QT_QTCORE_LIBRARY}