From b70084789d710db2d3551734222eec1a97aa17b6 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Fri, 3 Apr 2020 16:21:45 -0400 Subject: [PATCH] [cmake] Make sure to properly use target_link_libraries with cpp2py modules --- python/app4triqs/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/app4triqs/CMakeLists.txt b/python/app4triqs/CMakeLists.txt index 4a14759e..46111dd8 100644 --- a/python/app4triqs/CMakeLists.txt +++ b/python/app4triqs/CMakeLists.txt @@ -13,7 +13,7 @@ endforeach() foreach(gen ${wrap_generators}) string(REPLACE "_desc.py" "" module_name ${gen}) 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 $<$:-Wno-attributes>) endforeach()