mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
b2d58d0b81
IfcConvert --version reported 0.8.0 on a plain source build even though the VERSION file says 0.8.6 (#8164). buildinfo.cpp already falls back to the IFCOPENSHELL_VERSION_STRING macro and CMake already passes it as ${RELEASE_VERSION}, but RELEASE_VERSION was only read from the VERSION file when VERSION_OVERRIDE was on. A default build (VERSION_OVERRIDE off, ADD_COMMIT_SHA off, as the nixpkgs package builds it) fell through to the hardcoded "0.8.0", so the fallback macro carried the stale value. Read the VERSION file unconditionally so RELEASE_VERSION is always the real version. VERSION_OVERRIDE still governs the branch name embedded when ADD_COMMIT_SHA is on, and project()/CPack now also reflect the true version. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>