Skip to content

CMake: Do not search parent directories for Git metadata - #1028

Merged
alazzaro merged 1 commit into
cp2k:developfrom
Growl1234:develop
Jul 22, 2026
Merged

CMake: Do not search parent directories for Git metadata#1028
alazzaro merged 1 commit into
cp2k:developfrom
Growl1234:develop

Conversation

@Growl1234

Copy link
Copy Markdown
Contributor

When DBCSR is embedded in another source tree without its own .git metadata, the current implementation searches parent directories and may use the enclosing project's Git tags and revision information as DBCSR's version.

Restrict Git metadata discovery to DBCSR's current source directory. If that directory is not a Git working tree or submodule, fall back to the version information provided by the DBCSR source archive.

@Growl1234

Copy link
Copy Markdown
Contributor Author

Looks like the tests are not that robust...

@alazzaro

Copy link
Copy Markdown
Member

@mtaillefumier can you review it? thanks...

@mtaillefumier mtaillefumier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These modifications look alright.

@alazzaro
alazzaro merged commit cf868dd into cp2k:develop Jul 22, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants