-
Notifications
You must be signed in to change notification settings - Fork 345
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
Proposed CMake improvements #877
Comments
The MYTHTV_SOURCE_BRANCH value passed into mythtv/CMakeLists.txt is required. Its used when creating the version.h file from version.h.in. I tried to recreate the logic used by the old build system version.sh shell script in the SourceVersion.cmake file. Maybe I missed something? Does the old build system have the same problem when doing a bisect? |
My recollection is yes (but most importantly, it would always build, and although I think it might have generated "unknown" in at least some cases). However, no matter, if you are going to enforce a branch name you need to fix the generation when a branch name cannot be obtained because the source is not git-ish (so at least default to some form of "unknown"). The second part of the proposed patch handles more cases, but there are still going to be cases of unable to determine the branch (because it is not a git-ish source). |
Proposed CMake improvements
The current mythtv/CMakeLists.txt for CMake builds requires a branch name. However, the calculation of the branch name in cmake/SourceVersion.cmake explicitly unsets the branch name in some cases, and when one is in detached head mode (for example, doing a git bisect) the branch name is not properly calculated (second part of the proposal addresses that)
The branch name should not be required.
Proposed patch:
The current cmake/SourceVersion.cmake file deviates from the existing configure script in calculating the branch name using different git commands. While those changes make sense in theory, this results in the branch name being empty in detached head mode (for example during a git bisect).
Attempt to find branch name consistent with past configure
Proposed patch:
The text was updated successfully, but these errors were encountered: