From f482863e0c057e5654f1b1ab565e9c27ca444882 Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Mon, 8 Oct 2018 05:15:28 +0000 Subject: [PATCH] test=release/1.0.0 --- cmake/flags.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/flags.cmake b/cmake/flags.cmake index e0556a0ba..9ebc132a8 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -138,7 +138,11 @@ if (APPLE) # On Mac OS X build fat binaries with x86_64 architectures by default. set (CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architectures for OSX" FORCE) endif() -else() + # On Mac OS X register class specifier is deprecated and will cause warning error on latest clang + set (COMMON_FLAGS -Wno-deprecated-register) +endif(APPLE) + +if(LINUX) set(GPU_COMMON_FLAGS -Wall -Wextra -- GitLab