From a26df45c38e9549e1a56a1160f3daf6bf883ca29 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Mon, 28 Apr 2014 16:21:10 -0600 Subject: [PATCH] cmake: Fix Interrogate installation so that runtime paths are properly removed. --- cmake/macros/Interrogate.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/macros/Interrogate.cmake b/cmake/macros/Interrogate.cmake index 66398fb772..4b208f09bd 100644 --- a/cmake/macros/Interrogate.cmake +++ b/cmake/macros/Interrogate.cmake @@ -289,6 +289,8 @@ function(add_python_module module) set_target_properties(${module} PROPERTIES SUFFIX ".pyd") endif() + install(TARGETS ${module} DESTINATION "${PYTHON_ARCH_INSTALL_DIR}/panda3d") + list(APPEND ALL_INTERROGATE_MODULES "${module}") set(ALL_INTERROGATE_MODULES "${ALL_INTERROGATE_MODULES}" CACHE INTERNAL "Internal variable") endif() @@ -302,5 +304,5 @@ if(HAVE_PYTHON) # The Interrogate path needs to be installed to the architecture-dependent # Python directory. - install(DIRECTORY "${PROJECT_BINARY_DIR}/panda3d" DESTINATION "${PYTHON_ARCH_INSTALL_DIR}") + install(FILES "${PROJECT_BINARY_DIR}/panda3d/__init__.py" DESTINATION "${PYTHON_ARCH_INSTALL_DIR}/panda3d") endif()