Skip to content

Build fails with unbundled SOCI #7123

@felixsinger

Description

@felixsinger

Description

When building Mumble server with -D bundled-soci=OFF -D enable-sqlite=ON -D enable-postgresql=OFF -D enable-mysql=OFF, CMake fails with the following error. Enabling postgresql in addition to sqlite lets CMake pass and compilation works.

Using NixOS unstable / master and SOCI version 4.1.2. Draft PR for updating Mumble in nixpkgs NixOS/nixpkgs#495932

CMake Error at src/database/CMakeLists.txt:80 (target_link_libraries):
  Target "mumble_database" links to:

    SOCI::soci

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Steps to reproduce

Build Mumble server with -D bundled-soci=OFF -D enable-sqlite=ON -D enable-postgresql=OFF -D enable-mysql=OFF

Mumble version

1.6.870

Mumble component

Server

OS

Linux

Reproducible?

Yes

Additional information

No response

Relevant log output

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug (error) in the softwaretriageThis issue is waiting to be triaged by one of the project members

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions