wikiheaders.pl: add --rev= option to pass revision string

This way, git is not required anymore to calculate the git revision
This commit is contained in:
Anonymous Maarten
2023-09-04 18:56:00 +02:00
parent 233789b0d1
commit e85206ffd8
3 changed files with 18 additions and 5 deletions

View File

@@ -3360,6 +3360,7 @@ if(NOT SDL_DISABLE_INSTALL)
SDL_generate_manpages(
SYMBOL "SDL_Init"
WIKIHEADERS_PL_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build-scripts/wikiheaders.pl"
REVISION "${SDL_REVISION}"
)
if(TARGET SDL3-javadoc)
set(SDL_INSTALL_JAVADOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/javadoc" CACHE PATH "Path where to install SDL3 javadoc")