Skip to content

QUESTION: Does the CMake build system allow overrides of things like version numbers? #221

@mhjacks

Description

@mhjacks

Hello,

I'm working on Linux packaging for Empty Epsilon. I've worked with build systems before, but CMake is new to me.

I assumed that "cmake .. -DSERIOUS_PROTON_DIR=$PWD/../../SeriousProton/ -DCPACK_PACKAGE_VERSION="2016.05.07" -DCPACK_PACKAGE_VERISON_MAJOR=2016 -DCPACK_PACKAGE_VERSION_MINOR=05 -DCPACK_PACKAGE_VERSION_PATCH=07 -DVERSION_NUMBER=20160507" would be enough to force the variable versions to the right values for interoperation with the official downloads. It worked yesterday, but yesterday was, exactly, 201600507.

My builds today are coming out with 20160508 as the version, which leads me to believe the variables I'm passing are not being honored. I can get the desired results by hand-editing the intermediate files with sed or something. Am I using CMake wrong?

I should note: These builds are on Raspbian 8 (Jessie) on a Raspberry Pi 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions