Re-Run CMake On Version Change
minecraft-pi-reborn/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2022-05-02 22:52:52 -04:00
parent 53cb68beee
commit 8822a22987
1 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,11 @@ if(MCPI_IS_APPIMAGE_BUILD)
endif()
# Version
set_property(
DIRECTORY
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS VERSION
)
file(STRINGS VERSION VERSION)
add_definitions(-DVERSION="${VERSION}")