mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-15 06:11:41 +00:00
Harmonise passing build version
Avoid running some configure step, instead pass it as a define like the Makefile
This commit is contained in:
+2
-1
@@ -9,8 +9,9 @@ add_library(common OBJECT
|
||||
"style.cpp"
|
||||
"usage.cpp"
|
||||
"util.cpp"
|
||||
"_version.cpp"
|
||||
"version.cpp"
|
||||
)
|
||||
target_compile_definitions(common PRIVATE "BUILD_VERSION_STRING=\"${GIT_REV}\"")
|
||||
|
||||
find_package(BISON 3.0.0 REQUIRED)
|
||||
set(BISON_FLAGS "-Wall -Dlr.type=ielr")
|
||||
|
||||
Reference in New Issue
Block a user