From 5c1ec4c67d2c3505dc9286362c2f37c68ecdfcd8 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Wed, 29 Apr 2020 16:13:15 -0400 Subject: [PATCH] [cmake] FIX target_link_libraries and target_compile_options command for python modules --- python/app4triqs/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/app4triqs/CMakeLists.txt b/python/app4triqs/CMakeLists.txt index 46111dd8..7b8b47dd 100644 --- a/python/app4triqs/CMakeLists.txt +++ b/python/app4triqs/CMakeLists.txt @@ -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 $<$:-Wno-attributes>) + target_link_libraries(${module_name} app4triqs_c) endforeach() # Install python modules to proper location