Skip to content

Add automatic configure info - #556

Draft
mwlasiuk wants to merge 1 commit into
MapsHD:mainfrom
mwlasiuk:mw/configure-info
Draft

mwlasiuk wants to merge 1 commit into
MapsHD:mainfrom
mwlasiuk:mw/configure-info

Conversation

@mwlasiuk

@mwlasiuk mwlasiuk commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

What?

This PR adds automatic generation of file containing strings describing configure time info as seen below:

image

How?

This file is not tracked in git. Every time user configures project using CMake (cmake -B build -S . -D...) this file is generated and embeded into project include paths.

Befor project version was set in repository root CMakeLists.txt file using compile definitions. Now it is automatically derived from project() directive from that same repository root CMakeLists.txt file alongside other usefull informations.

Why?

This simplifies version tracking by using cmake feature that was designed to do that. Also I use this technique in some of my other projects and this enables me to use that in ImGui tooltip to display info how was this binary built. This might be usefull for users raporting issues - they might provide screensot that contains information about their software versions, system (on which binary was built) info and whether they built the software on their own branch or the main and whether there are any changes in the code.

Plan?

Plan is to add such GUI panel as seen below (not yet included in this PR - screenshot from other project):

image

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.

1 participant