From a167933b34a59c172eb849793f2cf160765958a7 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Fri, 17 Jan 2020 10:21:52 -0500 Subject: [PATCH] [cmake] Do not warn about unkown attributes with gcc, add warnings to AppleClang --- CMakeLists.txt | 3 +++ python/app4triqs/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3b1bfdd..fe301b0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,8 +82,11 @@ target_compile_options(project_warnings -Wpedantic -Wno-sign-compare $<$:-Wshadow=local> + $<$:-Wno-attributes> $<$:-Wshadow> $<$:-Wno-gcc-compat> + $<$:-Wshadow> + $<$:-Wno-gcc-compat> ) # ############# diff --git a/python/app4triqs/CMakeLists.txt b/python/app4triqs/CMakeLists.txt index 7b8b47dd..4a14759e 100644 --- a/python/app4triqs/CMakeLists.txt +++ b/python/app4triqs/CMakeLists.txt @@ -14,6 +14,7 @@ foreach(gen ${wrap_generators}) string(REPLACE "_desc.py" "" module_name ${gen}) add_cpp2py_module(${module_name}) target_link_libraries(${module_name} app4triqs_c) + target_compile_options(${module_name} PUBLIC $<$:-Wno-attributes>) endforeach() # Install python modules to proper location