diff --git a/cmake/flags.cmake b/cmake/flags.cmake index eb451dbf8609d8b656a1e00e634489af6a6143d5..b8a37b5513c34da615fcf75aa8fb91263526b326 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -214,7 +214,7 @@ if(APPLE) 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 10.0 - set(COMMON_FLAGS -Wno-deprecated-register) + set(COMMON_FLAGS -Wno-deprecated-register -Werror=format) endif() if(WITH_HETERPS AND WITH_PSLIB)