mirror of
https://github.com/triqs/dft_tools
synced 2024-11-18 03:53:48 +01:00
[cmake] Make sure to properly use target_link_libraries with cpp2py modules
This commit is contained in:
parent
ed1e683b69
commit
b70084789d
@ -13,7 +13,7 @@ endforeach()
|
|||||||
foreach(gen ${wrap_generators})
|
foreach(gen ${wrap_generators})
|
||||||
string(REPLACE "_desc.py" "" module_name ${gen})
|
string(REPLACE "_desc.py" "" module_name ${gen})
|
||||||
add_cpp2py_module(${module_name})
|
add_cpp2py_module(${module_name})
|
||||||
target_link_libraries(${module_name} app4triqs_c)
|
target_link_libraries(${module_name} PRIVATE app4triqs_c)
|
||||||
target_compile_options(${module_name} PUBLIC $<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>)
|
target_compile_options(${module_name} PUBLIC $<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user