Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Filelight
Commits
4aa87a01
Commit
4aa87a01
authored
Feb 22, 2022
by
Laurent Montel
Browse files
Use ecm_set_disabled_deprecation_versions
parent
dfd783f2
Pipeline
#141189
passed with stage
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
4aa87a01
...
...
@@ -17,7 +17,7 @@ cmake_minimum_required (VERSION 3.16 FATAL_ERROR)
project
(
Filelight VERSION
${
FILELIGHT_VERSION
}
)
set
(
PROJECT_VERSION
${
RELEASE_SERVICE_VERSION
}
)
set
(
KF5_MIN_VERSION
"5.9
0
.0"
)
set
(
KF5_MIN_VERSION
"5.9
1
.0"
)
set
(
QT_REQUIRED_VERSION
"5.15.0"
)
find_package
(
ECM
${
KF5_MIN_VERSION
}
REQUIRED NO_MODULE
)
...
...
@@ -34,6 +34,7 @@ include(KDEInstallDirs)
include
(
KDECMakeSettings
)
include
(
KDECompilerSettings NO_POLICY_SCOPE
)
include
(
ECMQtDeclareLoggingCategory
)
include
(
ECMDeprecationSettings
)
find_package
(
Qt
${
QT_MAJOR_VERSION
}
${
QT_REQUIRED_VERSION
}
CONFIG REQUIRED Core Widgets Svg
)
find_package
(
KF5
${
KF5_MIN_VERSION
}
REQUIRED
...
...
@@ -44,9 +45,11 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
find_package
(
KF5DocTools
)
# Optional, not needed on Windows for example.
add_definitions
(
-DTRANSLATION_DOMAIN=\"filelight\"
)
add_definitions
(
-DQT_NO_FOREACH
)
add_definitions
(
-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00
)
add_definitions
(
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800
)
ecm_set_disabled_deprecation_versions
(
QT 5.15.2
KF 5.91
)
include_directories
(
src
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment