Commit 4f4fae8e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

USe new ecm_set_disabled_deprecation_versions

parent 89398ec0
Pipeline #142034 passed with stage
in 30 seconds
......@@ -12,7 +12,7 @@ if(NOT UNIX)
message(FATAL_ERROR "KFloppy is only supposed to be built on Unix platforms.")
endif(NOT UNIX)
set(KF5_MIN_VERSION "5.85.0")
set(KF5_MIN_VERSION "5.91.0")
set(REQUIRED_QT_VERSION "5.15.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
......@@ -26,6 +26,7 @@ include(ECMInstallIcons)
include(ECMQtDeclareLoggingCategory)
include(KDEGitCommitHooks)
include(KDEClangFormat)
include(ECMDeprecationSettings)
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.c)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
......@@ -39,8 +40,10 @@ set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
)
find_package(KF5Crash ${KF5_MIN_VERSION} CONFIG REQUIRED)
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055A00)
ecm_set_disabled_deprecation_versions(QT 5.15.2
KF 5.91
)
add_executable(kfloppy)
target_sources(kfloppy PRIVATE main.cpp format.cpp floppy.cpp )
......
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