https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b50965828002f6e916800f...
commit b50965828002f6e916800ffd06f139db93c685e4 Author: Serge Gautherie 32623169+SergeGautherie@users.noreply.github.com AuthorDate: Sat Jul 18 15:37:29 2020 +0200 Commit: GitHub noreply@github.com CommitDate: Sat Jul 18 15:37:29 2020 +0200
[CMAKE] Remove obsolete 'CMAKE_CXX_COMPILER_VERSION' checks (#2981)
Following upgrade to RosBE 2.2.0 support and GCC 8.4. --- base/applications/network/telnet/CMakeLists.txt | 2 +- base/services/tftpd/CMakeLists.txt | 2 +- dll/3rdparty/libxslt/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/applications/network/telnet/CMakeLists.txt b/base/applications/network/telnet/CMakeLists.txt index b0916c0a245..8e586fa363b 100644 --- a/base/applications/network/telnet/CMakeLists.txt +++ b/base/applications/network/telnet/CMakeLists.txt @@ -3,7 +3,7 @@ set_cpp(WITH_EXCEPTIONS WITH_STL)
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
-if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) +if(NOT MSVC) add_compile_flags("-Wno-restrict") endif()
diff --git a/base/services/tftpd/CMakeLists.txt b/base/services/tftpd/CMakeLists.txt index 0159e0e1a3c..f4bd0cb6d7d 100644 --- a/base/services/tftpd/CMakeLists.txt +++ b/base/services/tftpd/CMakeLists.txt @@ -1,5 +1,5 @@
-if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) +if(NOT MSVC) add_compile_flags("-Wno-format-overflow") endif()
diff --git a/dll/3rdparty/libxslt/CMakeLists.txt b/dll/3rdparty/libxslt/CMakeLists.txt index 8105fdde4a9..d5e2d3b9eb8 100644 --- a/dll/3rdparty/libxslt/CMakeLists.txt +++ b/dll/3rdparty/libxslt/CMakeLists.txt @@ -1,5 +1,5 @@
-if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) +if(NOT MSVC) add_compile_flags("-Wno-misleading-indentation") endif()