2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

CMakeLists.txt configure for GCC 8.3

This commit is contained in:
s1lentq 2021-03-23 20:07:32 +07:00
parent 91bf77ac9e
commit a579f56679
2 changed files with 6 additions and 2 deletions

View File

@ -47,7 +47,11 @@ else()
-Wno-sign-compare -Wno-strict-aliasing -Wno-ignored-attributes")
if (NOT USE_CLANG_COMPILER)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-stringop-truncation -Wno-format-truncation -Wno-unused-but-set-variable -Wno-class-memaccess")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-stringop-truncation -Wno-format-truncation -Wno-class-memaccess")
endif()
endif()
endif()

View File

@ -42,7 +42,7 @@ else()
-Wno-unknown-pragmas -Wno-unused-result -Wno-unused-variable -Wno-unused-function\
-Wno-write-strings -Wno-sign-compare")
if (NOT USE_CLANG_COMPILER)
if (NOT USE_CLANG_COMPILER AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-stringop-truncation -Wno-class-memaccess")
endif()
endif()