Skip to content

Commit 34b81f6

Browse files
authored
Merge pull request #13749 from JiabinYang/fix/mac_10.14
fix compile error on latest Mac OS 10.14
2 parents 41e4f7e + cea4952 commit 34b81f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/flags.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ if (APPLE)
157157
# On Mac OS X build fat binaries with x86_64 architectures by default.
158158
set (CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architectures for OSX" FORCE)
159159
endif()
160+
# On Mac OS X register class specifier is deprecated and will cause warning error on latest clang 10.0
161+
set (COMMON_FLAGS -Wno-deprecated-register)
160162
endif(APPLE)
161163

162164
if(LINUX)

0 commit comments

Comments
 (0)