Allow the CMake user to provide their own version string

This will be useful for downstream packagers, as well as rgbds-live
This commit is contained in:
ISSOtm
2026-08-15 20:25:35 +02:00
parent cda77721d4
commit d9003f633a
2 changed files with 38 additions and 28 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ add_library(common OBJECT
"util.cpp"
"version.cpp"
)
target_compile_definitions(common PRIVATE "BUILD_VERSION_STRING=\"${GIT_REV}\"")
target_compile_definitions(common PRIVATE "BUILD_VERSION_STRING=\"${RGBDS_VERSION_STRING}\"")
find_package(BISON 3.0.0 REQUIRED)
# BISON 4.0 deprecates passing this BISON_FLAGS string to `bison_target`'s `COMPILE_FLAGS`,