mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Add compile flag to show Qt deprecation warnings
This commit is contained in:
parent
46bc1d12b9
commit
c33284fa8c
2 changed files with 4 additions and 2 deletions
|
@ -53,9 +53,10 @@ endif ()
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
# defines
|
# defines
|
||||||
|
add_definitions(-DQT_DEPRECATED_WARNINGS)
|
||||||
add_definitions(-DQT_NO_CAST_TO_ASCII)
|
add_definitions(-DQT_NO_CAST_TO_ASCII)
|
||||||
# Efficient construction for QString & QByteArray (Qt >= 4.8)
|
|
||||||
add_definitions(-DQT_USE_QSTRINGBUILDER)
|
add_definitions(-DQT_USE_QSTRINGBUILDER)
|
||||||
|
add_definitions(-DQT_STRICT_ITERATORS)
|
||||||
|
|
||||||
if (CMAKE_BUILD_TYPE MATCHES "Debug")
|
if (CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||||
message(STATUS "Project is built in DEBUG mode.")
|
message(STATUS "Project is built in DEBUG mode.")
|
||||||
|
|
|
@ -54,8 +54,9 @@ CONFIG(release, debug|release) {
|
||||||
# VERSION DEFINES
|
# VERSION DEFINES
|
||||||
include(../version.pri)
|
include(../version.pri)
|
||||||
|
|
||||||
|
# Qt defines
|
||||||
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
DEFINES += QT_NO_CAST_TO_ASCII
|
DEFINES += QT_NO_CAST_TO_ASCII
|
||||||
# Efficient construction for QString & QByteArray (Qt >= 4.8)
|
|
||||||
DEFINES += QT_USE_QSTRINGBUILDER
|
DEFINES += QT_USE_QSTRINGBUILDER
|
||||||
DEFINES += QT_STRICT_ITERATORS
|
DEFINES += QT_STRICT_ITERATORS
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue