From dcd6d9a1b7f6e2900cb90d47c1d5367e9daf6769 Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Mon, 8 Oct 2018 05:15:28 +0000 Subject: [PATCH] test=develop --- cmake/flags.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/flags.cmake b/cmake/flags.cmake index 331b2af367..5eacc017ce 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -157,6 +157,8 @@ 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() + # 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) -- GitLab