Skip to content

Commit

Permalink
Set a dependency on all morpheus python targets
Browse files Browse the repository at this point in the history
Signed-off-by: Anuradha Karuppiah <[email protected]>
  • Loading branch information
AnuradhaKaruppiah committed Aug 19, 2024
1 parent 84e9f8c commit 0a4b8b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/morpheus/morpheus/_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,19 @@ morpheus_utils_python_package_set_default_link_targets(morpheus)

# #----------morpheus._lib.common---------
morpheus_add_pybind11_module(common SOURCE_FILES common/module.cpp)
set_property(GLOBAL APPEND PROPERTY py_morpheus_target_property morpheus._lib.common)

#----------morpheus._lib.stages---------
morpheus_add_pybind11_module(stages SOURCE_FILES stages/module.cpp)
set_property(GLOBAL APPEND PROPERTY py_morpheus_target_property morpheus._lib.stages)

#----------morpheus._lib.messages---------
morpheus_add_pybind11_module(messages SOURCE_FILES messages/module.cpp)
set_property(GLOBAL APPEND PROPERTY py_morpheus_target_property morpheus._lib.messages)

#----------morpheus._lib.modules---------
morpheus_add_pybind11_module(modules SOURCE_FILES modules/module.cpp)
set_property(GLOBAL APPEND PROPERTY py_morpheus_target_property morpheus._lib.modules)

#----------morpheus._lib.doca---------
if(MORPHEUS_SUPPORT_DOCA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ target_include_directories(morpheus

# Also add a dependency to the target so that the headers are generated before the target is built
add_dependencies(morpheus_llm ${cudf_helpers_target})
message("add_dependencies morpheus_llm ${cudf_helpers_target}")

# Add a dependency on the morpheus cpython libraries
get_property(py_morpheus_target GLOBAL PROPERTY py_morpheus_target_property)
add_dependencies(morpheus_llm ${py_morpheus_target})
message("add_dependencies morpheus_llm ${py_morpheus_target}")

# Morpheus has to built before morpheus llm
add_dependencies(morpheus_llm morpheus)
Expand Down

0 comments on commit 0a4b8b5

Please sign in to comment.