summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Knauß <sknauss@kde.org>2016-11-22 11:42:11 (GMT)
committerSandro Knauß <sknauss@kde.org>2016-11-22 11:42:11 (GMT)
commit1a6974a3c0737c130ccb1a9475aca31d516267f0 (patch)
tree4ff3b5b89bab94067afc69b959a8c4b2e7f62cd6
parent11a7769a01b0b155ae62b209c7cc24aa1b65cdbd (diff)
set older versions for MIMETREEPARSER_ONLY_BUILD
this makes it possible to build for kube. CCMAIL: montel@kde.org
-rw-r--r--CMakeLists.txt34
1 files changed, 20 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f7fb21e..144ef1e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,20 +6,6 @@ option(MIMETREEPARSER_ONLY_BUILD "Build only mimetreeparser" FALSE)
option(KDEPIM_ENTERPRISE_BUILD "Enable features specific to the enterprise branch, which are normally disabled. Also, it disables many components not needed for Kontact such as the Kolab client." FALSE)
set(KF5_VERSION "5.28.0")
-find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
-set(CMAKE_MODULE_PATH ${Messagelib_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
-set(LIBRARY_NAMELINK)
-include(GenerateExportHeader)
-include(ECMSetupVersion)
-include(ECMGenerateHeaders)
-include(ECMGeneratePriFile)
-include(ECMPackageConfigHelpers)
-include(FeatureSummary)
-include(KDEInstallDirs)
-include(KDECMakeSettings)
-include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
-include(ECMQtDeclareLoggingCategory)
-include(ECMAddTests)
set(PIM_VERSION "5.3.90")
@@ -44,6 +30,26 @@ set(LIBKDEPIM_LIB_VERSION "5.3.80")
set(LIBKLEO_LIB_VERSION "5.3.80")
set(PIMCOMMON_LIB_VERSION "5.3.80")
+if (${MIMETREEPARSER_ONLY_BUILD})
+ set(KF5_VERSION "5.26.0")
+ set(KMIME_LIB_VERSION "5.1.40")
+endif()
+
+find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
+set(CMAKE_MODULE_PATH ${Messagelib_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
+set(LIBRARY_NAMELINK)
+include(GenerateExportHeader)
+include(ECMSetupVersion)
+include(ECMGenerateHeaders)
+include(ECMGeneratePriFile)
+include(ECMPackageConfigHelpers)
+include(FeatureSummary)
+include(KDEInstallDirs)
+include(KDECMakeSettings)
+include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
+include(ECMQtDeclareLoggingCategory)
+include(ECMAddTests)
+
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Gui Test)
find_package(KF5Codecs ${KF5_VERSION} CONFIG REQUIRED)