From 84a5749f9fd237306b8860144dfe22323999defe Mon Sep 17 00:00:00 2001 From: Tyler Johnson Date: Wed, 6 Feb 2019 20:48:09 +0000 Subject: [PATCH] Squelch attribute warnings from the GNU compiler (issue #2552) --- cmake/cef_variables.cmake.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/cef_variables.cmake.in b/cmake/cef_variables.cmake.in index 10698843e..e42b7ed85 100644 --- a/cmake/cef_variables.cmake.in +++ b/cmake/cef_variables.cmake.in @@ -169,6 +169,12 @@ if(OS_LINUX) ) endif() + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") + list(APPEND CEF_CXX_COMPILER_FLAGS + -Wno-attributes # The cfi-icall attribute is not supported by the GNU C++ compiler + ) + endif() + if(PROJECT_ARCH STREQUAL "x86_64") # 64-bit architecture. list(APPEND CEF_COMPILER_FLAGS