Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

cmake: Allow to build with system libraries and other improvements#31

Open
cryptomilk wants to merge 5 commits into
rhasspy:masterfrom
cryptomilk:asn-cmake
Open

cmake: Allow to build with system libraries and other improvements#31
cryptomilk wants to merge 5 commits into
rhasspy:masterfrom
cryptomilk:asn-cmake

Conversation

@cryptomilk

Copy link
Copy Markdown

This patchset allows you to build piper-phonemize with system libraries instead of fetching sources from the internet. For this a new option has been introduced BUILD_EXTERNAL which will enable building with external sources. The default in cmake is OFF in the Makefile it is ON.

This also generates a cmake config file so you can consume the library using find_package(piper_phonemize) from other cmake files. It also fixes some issues if you use it as an external project.

You can see it building for openSUSE against system libraries here:

https://build.opensuse.org/package/show/home:gladiac/piper-phonemize

The option will enable fetching and building of dependencies. The
default is OFF to use system libraries instead.
If you import the project (Add_ExternalProject) CMAKE_SOURCE_DIR is
pointing to a different directory.
This way other cmake project can find the library using:

  find_package(piper_phonemize)
@albassort

Copy link
Copy Markdown

This is good and very useful! Please merge

@arrowd

arrowd commented Jun 17, 2025

Copy link
Copy Markdown

Just as a "me too" message, Piper is going to be added to FreeBSD Ports and this PR was indeed useful to make it link to the system-provided libraries.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants