diff --git a/cmake/flags.cmake b/cmake/flags.cmake index 331b2af367bdf261ffbf96fb88f61cc6958ee647..5eacc017ceba34776856939cf76f7b7594386a07 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)