Skip to content

Commit d60c852

Browse files
committed
Recover -Wno-deprecated-declarations due to MacOS errors
Signed-off-by: cyy <cyyever@outlook.com>
1 parent 7d7fcfd commit d60c852

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ else(MSVC)
206206
string(APPEND CMAKE_CXX_FLAGS " -Wextra")
207207
string(APPEND CMAKE_CXX_FLAGS " -Werror")
208208
string(APPEND CMAKE_CXX_FLAGS " -Wunknown-pragmas")
209+
string(APPEND CMAKE_CXX_FLAGS " -Wno-deprecated-declarations")
209210
string(APPEND CMAKE_CXX_FLAGS " -Wimplicit-fallthrough")
210211
string(APPEND CMAKE_CXX_FLAGS " -Wno-strict-aliasing")
211212
string(APPEND CMAKE_CXX_FLAGS " -Wunused-variable")

bench/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ macro(add_benchmark BENCHNAME)
5959
"-fsanitize=${USE_SANITIZER}" "-fno-omit-frame-pointer")
6060
target_link_options(${BENCHNAME} PRIVATE "-fsanitize=${USE_SANITIZER}")
6161
endif()
62-
if (APPLE)
63-
target_link_options(${BENCHNAME} PRIVATE " -Wno-deprecated-declarations")
64-
endif()
6562

6663
if(OpenMP_FOUND)
6764
target_link_libraries(${BENCHNAME} OpenMP::OpenMP_CXX)

0 commit comments

Comments
 (0)