Skip to content

Commit 627bea4

Browse files
authored
Merge pull request #13760 from JiabinYang/fix/mac_10.14_for_1.0
Fix/mac 10.14 for 1.0
2 parents c8c9479 + fb59822 commit 627bea4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cmake/flags.cmake

+6-2
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,17 @@ if (APPLE)
138138
# On Mac OS X build fat binaries with x86_64 architectures by default.
139139
set (CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architectures for OSX" FORCE)
140140
endif()
141-
else()
141+
# On Mac OS X register class specifier is deprecated and will cause warning error on latest clang 10.0
142+
set (COMMON_FLAGS -Wno-deprecated-register)
143+
endif(APPLE)
144+
145+
if(LINUX)
142146
set(GPU_COMMON_FLAGS
143147
-Wall
144148
-Wextra
145149
-Werror
146150
${GPU_COMMON_FLAGS})
147-
endif()
151+
endif(LINUX)
148152

149153
if(UNIX AND NOT APPLE)
150154
# except apple from nix*Os family

0 commit comments

Comments
 (0)