diff --git a/cmake/TrMacros.cmake b/cmake/TrMacros.cmake index 5e439126f..ce7690a62 100644 --- a/cmake/TrMacros.cmake +++ b/cmake/TrMacros.cmake @@ -194,5 +194,9 @@ macro(tr_qt_add_resources) endmacro() macro(tr_qt_add_translation) - qt5_add_translation(${ARGN} OPTIONS -silent) + if (Qt5LinguistTools_VERSION VERSION_LESS 5.11.0) + qt5_add_translation(${ARGN}) + else() + qt5_add_translation(${ARGN} OPTIONS -silent) + endif() endmacro() diff --git a/qt/TorrentModel.cc b/qt/TorrentModel.cc index 5758de8fa..543ef9eab 100644 --- a/qt/TorrentModel.cc +++ b/qt/TorrentModel.cc @@ -7,6 +7,7 @@ */ #include +#include #include #include