[GH-ISSUE #509] [Build error] Unknown CMake command "pybind11_add_module". #172

Closed
opened 2026-10-29 21:10:30 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @fungaren on GitHub (Jun 17, 2025).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/509

# cmake .. -DUSE_CUDA=ON
CMAKE_BUILD_TYPE: RelWithDebInfo
-- CUDA support is enabled
-- Http as metadata server support is enabled
-- metrics is enabled
-- -------------YLT CONFIG SETTING-------------
-- YLT_ENABLE_SSL: OFF
-- YLT_ENABLE_PMR: OFF
-- YLT_ENABLE_IO_URING: OFF
-- YLT_ENABLE_STRUCT_PACK_UNPORTABLE_TYPE: OFF
-- YLT_ENABLE_STRUCT_PACK_OPTIMIZE: OFF
-- --------------------------------------------
CMake Error at CMakeLists.txt:17 (add_subdirectory):
  The source directory

    /root/mooncake/extern/pybind11

  does not contain a CMakeLists.txt file.


-- Mooncake Store will be build
CMake Error at mooncake-integration/CMakeLists.txt:21 (pybind11_add_module):
  Unknown CMake command "pybind11_add_module".


-- Configuring incomplete, errors occurred!
Originally created by @fungaren on GitHub (Jun 17, 2025). Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/509 ```text # cmake .. -DUSE_CUDA=ON CMAKE_BUILD_TYPE: RelWithDebInfo -- CUDA support is enabled -- Http as metadata server support is enabled -- metrics is enabled -- -------------YLT CONFIG SETTING------------- -- YLT_ENABLE_SSL: OFF -- YLT_ENABLE_PMR: OFF -- YLT_ENABLE_IO_URING: OFF -- YLT_ENABLE_STRUCT_PACK_UNPORTABLE_TYPE: OFF -- YLT_ENABLE_STRUCT_PACK_OPTIMIZE: OFF -- -------------------------------------------- CMake Error at CMakeLists.txt:17 (add_subdirectory): The source directory /root/mooncake/extern/pybind11 does not contain a CMakeLists.txt file. -- Mooncake Store will be build CMake Error at mooncake-integration/CMakeLists.txt:21 (pybind11_add_module): Unknown CMake command "pybind11_add_module". -- Configuring incomplete, errors occurred! ```
Author
Owner

@fungaren commented on GitHub (Jun 17, 2025):

Related PR: https://github.com/kvcache-ai/Mooncake/pull/250

Solution:

git submodule update --init
<!-- gh-comment-id:2979892810 --> @fungaren commented on GitHub (Jun 17, 2025): Related PR: https://github.com/kvcache-ai/Mooncake/pull/250 Solution: ```bash git submodule update --init ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/Mooncake#172
No description provided.