diff --git a/cmake/macros/Interrogate.cmake b/cmake/macros/Interrogate.cmake index 5e29837756..39b5cbe3dc 100644 --- a/cmake/macros/Interrogate.cmake +++ b/cmake/macros/Interrogate.cmake @@ -262,7 +262,7 @@ function(add_python_module module) endif() endforeach(arg) - if(NOT link_keyword) + if(NOT link_targets) set(link_targets ${targets}) endif()