Add compiling flag '-Wno-deprecated-declarations'.

This commit is contained in:
Xie Han
2024-06-21 01:59:41 +08:00
parent 0c510a29a2
commit 2ef0f6748a
5 changed files with 5 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ if (WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /wd4200 /std:c++14")
else ()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fPIC -pipe -std=gnu90")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fPIC -pipe -std=${CXX_STD} -fno-exceptions")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fPIC -pipe -std=${CXX_STD} -fno-exceptions -Wno-deprecated-declarations")
endif ()
set(TEST_LIST