3
0
mirror of https://github.com/triqs/dft_tools synced 2024-07-11 05:43:48 +02:00

[cmake] FIX target_link_libraries and target_compile_options command for python modules

This commit is contained in:
Nils Wentzell 2020-04-29 16:13:15 -04:00
parent 2fca5cde85
commit 5c1ec4c67d

View File

@ -13,8 +13,7 @@ endforeach()
foreach(gen ${wrap_generators})
string(REPLACE "_desc.py" "" module_name ${gen})
add_cpp2py_module(${module_name})
target_link_libraries(${module_name} PRIVATE app4triqs_c)
target_compile_options(${module_name} PUBLIC $<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>)
target_link_libraries(${module_name} app4triqs_c)
endforeach()
# Install python modules to proper location