3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-18 12:03:50 +01:00

[cmake] Do not warn about unkown attributes with gcc, add warnings to AppleClang

This commit is contained in:
Nils Wentzell 2020-01-17 10:21:52 -05:00
parent e47bc7ecb0
commit a167933b34
2 changed files with 4 additions and 0 deletions

View File

@ -82,8 +82,11 @@ target_compile_options(project_warnings
-Wpedantic
-Wno-sign-compare
$<$<CXX_COMPILER_ID:GNU>:-Wshadow=local>
$<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>
$<$<CXX_COMPILER_ID:Clang>:-Wshadow>
$<$<CXX_COMPILER_ID:Clang>:-Wno-gcc-compat>
$<$<CXX_COMPILER_ID:AppleClang>:-Wshadow>
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-gcc-compat>
)
# #############

View File

@ -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 $<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>)
endforeach()
# Install python modules to proper location