mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
CMake: Light tidying in Interrogate.cmake
This commit is contained in:
parent
8e230495a1
commit
538c615abe
@ -237,7 +237,10 @@ endfunction(interrogate_sources)
|
|||||||
# Python module when it's initialized.
|
# Python module when it's initialized.
|
||||||
#
|
#
|
||||||
function(add_python_module module)
|
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(targets)
|
||||||
set(link_targets)
|
set(link_targets)
|
||||||
set(import_flags)
|
set(import_flags)
|
||||||
@ -302,7 +305,6 @@ function(add_python_module module)
|
|||||||
|
|
||||||
list(APPEND ALL_INTERROGATE_MODULES "${module}")
|
list(APPEND ALL_INTERROGATE_MODULES "${module}")
|
||||||
set(ALL_INTERROGATE_MODULES "${ALL_INTERROGATE_MODULES}" CACHE INTERNAL "Internal variable")
|
set(ALL_INTERROGATE_MODULES "${ALL_INTERROGATE_MODULES}" CACHE INTERNAL "Internal variable")
|
||||||
endif()
|
|
||||||
endfunction(add_python_module)
|
endfunction(add_python_module)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user