CMake: Light tidying in Interrogate.cmake

This commit is contained in:
Sam Edwards 2018-05-14 17:54:56 -06:00
parent 8e230495a1
commit 538c615abe

View File

@ -237,7 +237,10 @@ endfunction(interrogate_sources)
# Python module when it's initialized.
#
function(add_python_module module)
if(HAVE_PYTHON AND INTERROGATE_PYTHON_INTERFACE)
if(NOT HAVE_PYTHON OR NOT INTERROGATE_PYTHON_INTERFACE)
return()
endif()
set(targets)
set(link_targets)
set(import_flags)
@ -302,7 +305,6 @@ function(add_python_module module)
list(APPEND ALL_INTERROGATE_MODULES "${module}")
set(ALL_INTERROGATE_MODULES "${ALL_INTERROGATE_MODULES}" CACHE INTERNAL "Internal variable")
endif()
endfunction(add_python_module)