Skip to content

Build/CMake: dev-only vcpkg git submodule fetched by default under FetchContent, CPM, and recursive git submodules #139

Backlog

Description

@clockblocker

Part of #138
Popularity: 3/7 corpus consumers (cuda-quantum, holoscan-sdk, slang-server)

Problem

Upstream reflect-cpp ships a development-only vcpkg git submodule in the repository root (.gitmodules). When downstream consumers pull reflect-cpp via CMake FetchContent, CPM, or direct git submodules (with REFLECTCPP_USE_VCPKG=OFF), default recursive submodule checkouts still attempt to clone the large vcpkg submodule unless every consumer manually overrides git submodule settings or drops --recursive.

Observed Downstream Workarounds

NVIDIA/cuda-quantum (90e4aa08)

  • cudaq/lib/Target/cmake/FetchDependencies.cmake#L24-L31 and #L62: must explicitly pass GIT_SUBMODULES "" alongside set(REFLECTCPP_USE_VCPKG OFF):
    FetchContent_Declare(
      reflectcpp
      GIT_REPOSITORY https://github.com/getml/reflect-cpp.git
      # reflect-cpp
      GIT_TAG 1327ef1d0b403f1424776da4c47bf0c7a6b0feaa
      GIT_SUBMODULES ""
      EXCLUDE_FROM_ALL
    )

nvidia-holoscan/holoscan-sdk (358c772f)

  • cmake/deps/reflectcpp.cmake#L16-L20: must explicitly pass GIT_CONFIG "submodule.vcpkg.update=none" in rapids_cpm_find in addition to REFLECTCPP_USE_VCPKG OFF:
    # Holoscan builds reflect-cpp directly; its development-only vcpkg submodule is unused.
    GIT_CONFIG "submodule.vcpkg.update=none"

hudson-trading/slang-server (1b413a46)

slang-server pins unmodified upstream getml/reflect-cpp as a direct git submodule (.gitmodules#L4-L6) at commit a26047a4. Because reflect-cpp still carries a development-only vcpkg git submodule at its repo root, slang-server had to explicitly drop --recursive from its build docs and CI (commit db0f4ca, PR #564: "Builds: don't require recursive submods"):

(Note: FANUC-CORPORATION/fanuc_driver also pulls the unused vcpkg submodule in CI via submodules: recursive without a workaround; see #142.)

Impact & Suggested Direction

  • Slow or failing configure/checkout steps (especially in air-gapped / pinned-source / CI environments) for any FetchContent, CPM, or git submodule consumer that forgets GIT_SUBMODULES "", GIT_CONFIG "submodule.vcpkg.update=none", or non-recursive submodule init.
  • Remove the vcpkg git submodule from the default repo tree (or mark update = none / fetch it out-of-band only in reflect-cpp's own dev CI).

Activity

  1. added
    bug
    needs-triage
    known-downstream-workarounds
    on Nov 29, 2026
  2. changed the title [-]Build/CMake: dev-only vcpkg git submodule fetched by default under FetchContent and CPM[/-] [+]Build/CMake: dev-only vcpkg git submodule fetched by default under FetchContent, CPM, and recursive git submodules[/+] on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugknown-downstream-workaroundsneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions