Skip to content

Allow offline builds for Linux distribution packaging #106

Closed

Description

@PureTryOut

Currently the CMake configuration expects to download the sendspin-cpp library during build time, https://github.com/Sendspin/sendspin-cpp-cli/blob/main/CMakeLists.txt#L59. This however is incompatible with Linux distributions that would like to package this tool as they require offline builds, so no network access once the build has started. Such distributions would also already provide sendspin-cpp as either a shared or static library so there would be no need to download it from within CMake either.

It would be great if this usecase were supported and downloading during CMake execution was made optional.

Activity

  1. chrisuthe commented on Nov 19, 2026

    @chrisuthe
    Member

    Done in #127 for the next release. An offline build is documented in the README and in the wiki's Build from source section: point CMake at local copies of each fetched dependency with FETCHCONTENT_SOURCE_DIR_<NAME> and set FETCHCONTENT_FULLYDISCONNECTED=ON. We verified a configure and build with no network access. The default online build is unchanged.

    Building against a system-installed sendspin-cpp isn't possible yet, because the library doesn't install a CMake package config. That's an upstream change in sendspin-cpp.

  2. PureTryOut commented on Nov 21, 2026

    @PureTryOut
    Author

    That's an upstream change in sendspin-cpp.

    Is this going to happen? Because for distributions that would be the ideal scenario.

    It would be great for all the other deps to be able to use system versions as well rather than having to vendor them all.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions