Skip to content

Commit 4151995

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

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ else(MSVC)
205205
string(APPEND CMAKE_CXX_FLAGS " -Wall")
206206
string(APPEND CMAKE_CXX_FLAGS " -Wextra")
207207
string(APPEND CMAKE_CXX_FLAGS " -Werror")
208+
string(APPEND CMAKE_CXX_FLAGS " -Wno-deprecated-declarations")
208209
string(APPEND CMAKE_CXX_FLAGS " -Wunknown-pragmas")
209210
string(APPEND CMAKE_CXX_FLAGS " -Wimplicit-fallthrough")
210211
string(APPEND CMAKE_CXX_FLAGS " -Wno-strict-aliasing")

bench/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (NOT ${MKL_FOUND})
2020
endif()
2121

2222
if (USE_SANITIZER)
23-
message(WARNING "USING SANITIZER IN TEST")
23+
message(WARNING "USING SANITIZER IN TEST")
2424
endif()
2525

2626
if (${OpenMP_FOUND})
@@ -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)