diff --git a/direct/CMakeLists.txt b/direct/CMakeLists.txt index 6fc755a522..b293728ee1 100644 --- a/direct/CMakeLists.txt +++ b/direct/CMakeLists.txt @@ -18,6 +18,7 @@ add_subdirectory(src/interval) add_subdirectory(src/showbase) add_python_module(direct p3dcparser p3deadrec p3distributed p3interval p3showbase) +target_link_libraries(direct core) # Installation: if(HAVE_PYTHON) diff --git a/panda/CMakeLists.txt b/panda/CMakeLists.txt index 84184d1295..1283fa1b80 100644 --- a/panda/CMakeLists.txt +++ b/panda/CMakeLists.txt @@ -97,10 +97,13 @@ add_python_module(core ${CORE_MODULE_COMPONENTS} LINK panda) if(HAVE_EGG) add_python_module(egg p3egg p3egg2pg) + target_link_libraries(egg core) endif() add_python_module(physics p3physics p3particlesystem) +target_link_libraries(physics core) if(HAVE_ODE) add_python_module(ode p3ode) + target_link_libraries(ode core) endif()