summaryrefslogtreecommitdiff
path: root/fluid/documentation/CMakeLists.txt
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-08-12 19:58:32 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-08-26 20:02:42 +0200
commit9568d5bb737eb468e87fd43f21404e2def101e30 (patch)
tree37dccaef760e15fa48d7d49569570ed6f2b3f88a /fluid/documentation/CMakeLists.txt
parent13f1911624359e8370c070981bb4b391b3caaae1 (diff)
Display Git revision in docs generated from releases (#499)
- makesrcdist: store Git revision in a file in the tarball - CMake/resources.cmake: get git revision either from Git or file and store it as CMake cache variable 'FLTK_GIT_REVISION' for reference - documentation/*: get git revision from git or file - fluid/documentation/*: get git revision from git or file
Diffstat (limited to 'fluid/documentation/CMakeLists.txt')
-rw-r--r--fluid/documentation/CMakeLists.txt21
1 files changed, 0 insertions, 21 deletions
diff --git a/fluid/documentation/CMakeLists.txt b/fluid/documentation/CMakeLists.txt
index fb2fac442..fccdeac97 100644
--- a/fluid/documentation/CMakeLists.txt
+++ b/fluid/documentation/CMakeLists.txt
@@ -15,7 +15,6 @@
#
set(DOCS)
-set(GIT_REVISION "")
set(YEAR "")
set(CURRENT_DATE "")
@@ -38,26 +37,6 @@ if(FLTK_BUILD_FLUID_DOCS OR FLTK_BUILD_PDF_DOCS)
OUTPUT_STRIP_TRAILING_WHITESPACE
)
- # find git revision
-
- # FIXME: This must also work with tarballs where git is not available.
- # For now we just ignore errors and set GIT_REVISION = "unknown".
- # In the future tarball/zip generation should create a file
- # that contains the git revision.
-
- execute_process(COMMAND
- git rev-parse --short=10 HEAD
- OUTPUT_VARIABLE GIT_REVISION
- OUTPUT_STRIP_TRAILING_WHITESPACE
- WORKING_DIRECTORY ${FLTK_SOURCE_DIR}
- ERROR_QUIET
- )
-
- # set to "'unknown'" if git is not available
- if(GIT_REVISION STREQUAL "")
- set(GIT_REVISION "'unknown'")
- endif()
-
# Find "short" doxygen version if it was built from Git
# Note: this is still needed in CMake 3.12.0 but later CMake versions
# (notably 3.25) remove the Git revision in 'DOXYGEN_VERSION'.