Skip to content

Commit f482863

Browse files
committed
test=release/1.0.0
1 parent 3b7e20b commit f482863

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/flags.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ 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
142+
set (COMMON_FLAGS -Wno-deprecated-register)
143+
endif(APPLE)
144+
145+
if(LINUX)
142146
set(GPU_COMMON_FLAGS
143147
-Wall
144148
-Wextra

0 commit comments

Comments
 (0)