Skip to content
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

Fix building project with non-git repos #2997

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Fix building project with non-git repos #2997

merged 1 commit into from
Sep 17, 2024

Conversation

daljit46
Copy link
Member

@daljit46 daljit46 commented Sep 13, 2024

The logic in cmake/FindVersion.cmake was mistakenly assuming that a git repo has been checked out. This is not the case when building release tarballs.
This PR fixes this by running the version matching logic only if the directory .git exists in the root directory of the project.
Fixes #2987.

@daljit46 daljit46 self-assigned this Sep 13, 2024
@daljit46 daljit46 requested a review from a team September 13, 2024 12:46
Copy link

clang-tidy review says "All clean, LGTM! 👍"

@daljit46 daljit46 merged commit d753881 into dev Sep 17, 2024
6 checks passed
@daljit46 daljit46 deleted the fix_no_git_build branch September 17, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant