Set QT_NO_FOREACH

GIT_SILENT
parent ff367da6
......@@ -119,6 +119,11 @@ add_definitions(
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x051C00
-DKF_DEPRECATED_WARNINGS_SINCE=0x060000
)
if(NOT Qt5_VERSION VERSION_LESS "5.12.0" AND NOT KF5_VERSION VERSION_LESS "5.56.0")
add_definitions(
-DQT_NO_FOREACH
)
endif()
# Turn off missing-field-initializers warning for GCC to avoid noise from false positives with empty {}
# See discussion: https://mail.kde.org/pipermail/kdevelop-devel/2014-February/046910.html
......
add_definitions(-DTRANSLATION_DOMAIN=\"kdevqmakemanager\")
remove_definitions(
-DQT_NO_FOREACH
)
declare_qt_logging_category(qmakecommon_LOG_SRCS
TYPE PLUGIN
......
......@@ -2,6 +2,7 @@ remove_definitions(
-DQT_NO_CAST_FROM_ASCII
-DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_FOREACH
)
qt5_wrap_ui(uifiles_SRCS
......
add_subdirectory(3rdparty/qtcreator-libs)
remove_definitions(
-DQT_NO_FOREACH
)
add_subdirectory(duchain)
add_subdirectory(nodejsmodules)
if(BUILD_TESTING)
......
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