mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 20:34:38 +01:00
[cmake] Do not warn about unkown attributes with gcc, add warnings to AppleClang
This commit is contained in:
parent
e47bc7ecb0
commit
a167933b34
@ -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>
|
||||
)
|
||||
|
||||
# #############
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user