-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QUESTION: Does the CMake build system allow overrides of things like version numbers? #221
Comments
That is the proper way to set the variables in CMake, however, the CMake script overrules them with these lines:
So you could comment out those lines. You could also comment out this line:
Which will remove the version number from the build, and make it version 0. Version 0 is accepted by any other version. For debugging. Finally, I tried it on the Pi2 with the new open source OpenGL driver, I had crashes every few minutes, and the performance was just below acceptable. |
I had it running on a Pi 2 & 3 back in March. I too had some problems with crashes. Haven't dug into why as of yet. I did run it with disable_shaders=1. If I remember correctly, it seemed to help. I'll test it again and bring up the FPS. |
I've done this in the latest version of my build script:
with $MAJOR, $MINOR and $PATCH set elsewhere. |
#941 shows the version number as part of cmake's output, to provide early warning signs of misconfiguration. |
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.
The text was updated successfully, but these errors were encountered: