Merge pull request #7150 from heinrich5991/pr_ddnet_cmakelists_add_in_h

Revert "`.h.in` aren't compiled"
This commit is contained in:
Jupeyy 2023-09-12 19:07:53 +00:00 committed by GitHub
commit f25773243f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -376,7 +376,7 @@ function(set_glob VAR GLOBBING EXTS DIRECTORY) # ...
endfunction()
function(set_src VAR GLOBBING DIRECTORY) # ...
set_glob(${VAR} ${GLOBBING} "c;cpp;h" ${DIRECTORY} ${ARGN})
set_glob(${VAR} ${GLOBBING} "c;cpp;h;h.in" ${DIRECTORY} ${ARGN})
set(${VAR} ${${VAR}} PARENT_SCOPE)
set(CHECKSUM_SRC ${CHECKSUM_SRC} ${${VAR}} PARENT_SCOPE)
endfunction()
@ -1992,6 +1992,7 @@ set_src(GAME_SHARED GLOB src/game
teamscore.h
tuning.h
variables.h
version.h.in
voting.h
)
# A bit hacky, but these are needed to register all the UUIDs, even for stuff