Skip to content

Pick up version from tarball name NAME-VERSION.tar.xz #536

@jhasse

Description

@jhasse

I'm adding libogg like this:

CPMAddPackage(NAME libogg
	URL http://downloads.xiph.org/releases/ogg/libogg-1.3.5.tar.xz
	URL_HASH SHA256=c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705
	OPTIONS "BUILD_TESTING OFF")

which results in the following output:

CPM: Adding package libogg@ ()

For other downloads CPM automatically picks up the version number from the filename, would be great if it works here, too :)

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