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:
parent
91bf77ac9e
commit
a579f56679
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user