Fix wesnoth-revision target dependency changed in 553cacd88ee

This commit is contained in:
Gunter Labes 2025-02-09 12:41:19 +01:00
parent 6765db5431
commit 5b8bb4f482
No known key found for this signature in database
GPG Key ID: C0C7B971CC910216
2 changed files with 2 additions and 3 deletions

View File

@ -50,7 +50,6 @@ jobs:
- name: Install dependencies
if: matrix.language == 'cpp'
run: |
utils/autorevision.sh -t h > src/revision.h
sudo apt update
sudo apt install scons libboost-system1.83-dev libboost-filesystem1.83-dev libboost-iostreams1.83-dev \
libboost-serialization1.83-dev libboost-locale1.83-dev libboost-regex1.83-dev libboost-random1.83-dev \

View File

@ -102,7 +102,7 @@ endif()
# Depending on the flag create a real file or an empty dummy.
#
# Since the code is executed every build run of Wesnoth we need to make sure
# that no modifications don't turn into a rebuild. Therefore a the dummy is
# that no modifications don't turn into a rebuild. Therefore a dummy is
# created and the second target only copies the file if modified.
if(ENABLE_DISPLAY_REVISION)
add_custom_target(wesnoth-revision_dummy
@ -238,7 +238,7 @@ if(ENABLE_GAME)
endif()
if(ENABLE_DISPLAY_REVISION)
add_dependencies(wesnoth wesnoth-revision)
add_dependencies(wesnoth-common wesnoth-revision) # game_version.cpp, where LOAD_REVISION is used, is in wesnoth-common
endif()
set_target_properties(wesnoth PROPERTIES OUTPUT_NAME ${BINARY_PREFIX}wesnoth${BINARY_SUFFIX})