Commit 5b27276c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: increase to qt5.15, cmake 3.16.0, use Qt:: vs Qt5:: for helping to port to qt6

parent a7f70894
Pipeline #56869 skipped
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
set(PIM_VERSION "5.17.42")
project(libkleo VERSION ${PIM_VERSION})
......@@ -27,7 +27,7 @@ include(FeatureSummary)
include(ECMQtDeclareLoggingCategory)
set(LIBKLEO_LIB_VERSION ${PIM_VERSION})
set(QT_REQUIRED_VERSION "5.14.0")
set(QT_REQUIRED_VERSION "5.15.0")
set(KDEPIMTEXTEDIT_VERSION "5.17.40")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets)
......@@ -64,7 +64,7 @@ ecm_setup_version(PROJECT VARIABLE_PREFIX LIBKLEO
########### Targets ###########
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
#add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055100)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055200)
remove_definitions(-DQT_NO_CAST_FROM_ASCII )
remove_definitions(-DQT_NO_FOREACH)
add_definitions(-DQT_NO_EMIT)
......@@ -93,15 +93,11 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel
)
option(USE_UNITY_CMAKE_SUPPORT "Use UNITY cmake support (speedup compile time)" FALSE)
option(USE_UNITY_CMAKE_SUPPORT "Use UNITY cmake support (speedup compile time)" OFF)
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT false)
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT OFF)
if (USE_UNITY_CMAKE_SUPPORT)
if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
message(STATUS "CMAKE version is less than 3.16.0 . We can't use cmake unify build support")
else()
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT true)
endif()
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT ON)
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment