[CMAKE] Remove obsolete 'CMAKE_CXX_COMPILER_VERSION' checks (#2981)

Following upgrade to RosBE 2.2.0 support and GCC 8.4.
This commit is contained in:
Serge Gautherie 2020-07-18 15:37:29 +02:00 committed by GitHub
parent 3b983e57b0
commit b509658280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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()