Update Cmake and disable fail to compile if it uses deprecated APIs.

This commit is contained in:
Simon De Backer
2021-01-04 20:38:57 +01:00
parent d3093f495b
commit 2000b6cd2b
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ add_definitions(-DQT_DEPRECATED_WARNINGS)
# You can make your code fail to compile if it uses deprecated APIs. # You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line. # In order to do so, uncomment the following line.
# disables all the APIs deprecated before Qt 6.0.0 # disables all the APIs deprecated before Qt 6.0.0
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000) #add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
# to enable function names and line numbers even for release builds # to enable function names and line numbers even for release builds
add_definitions(-DQT_MESSAGELOGCONTEXT) add_definitions(-DQT_MESSAGELOGCONTEXT)

View File

@@ -25,7 +25,7 @@ if(DEFINED BUILD_WITH_KF5)
if(NOT DEFINED KF5_GIT_TAG) if(NOT DEFINED KF5_GIT_TAG)
#https://qelectrotech.org/forum/viewtopic.php?pid=13924#p13924 #https://qelectrotech.org/forum/viewtopic.php?pid=13924#p13924
set(KF5_GIT_TAG v5.70.0) set(KF5_GIT_TAG v5.77.0)
endif() endif()
# Fix stop the run autotests of kcoreaddons # Fix stop the run autotests of kcoreaddons