[master] 09334c5 - Improve use of CMake's OPTION_BUILD_HTML_DOCUMENTATION

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 09334c5 - Improve use of CMake's OPTION_BUILD_HTML_DOCUMENTATION "ManoloFLTK" 01:02 Sep 17 top right image
 
commit 09334c51c753254001c335e258f42774022dd639
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Sep 17 09:56:45 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Sep 17 09:56:45 2022 +0200

    Improve use of CMake's OPTION_BUILD_HTML_DOCUMENTATION

 documentation/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git documentation/CMakeLists.txt documentation/CMakeLists.txt
index 1fe6d61..df23668 100644
--- documentation/CMakeLists.txt
+++ documentation/CMakeLists.txt
@@ -44,7 +44,8 @@ if (GENERATE_DOCS)
     OUTPUT_VARIABLE CURRENT_DATE
   )
 
-  execute_process (COMMAND git rev-parse --short=10 HEAD
+  execute_process (COMMAND
+    git --git-dir=${CMAKE_SOURCE_DIR}/.git rev-parse --short=10 HEAD
     OUTPUT_VARIABLE GIT_REVISION
   )
 
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.