FLTK logo

[fltk/fltk] CMake fails after downloading source tree from www.fltk.org (Issue #499)

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.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] CMake fails after downloading source tree from www.fltk.org (Issue #499) ManoloFLTK Sep 17, 2022  
 

When the FLTK source tree is downloaded from the "download" section of www.fltk.org,
rather than from its github git repo, CMake building fails with

fatal: not a git repository: '/home/xxxx/fltk-1.4.x/.git'

CMake Error at documentation/CMakeLists.txt:53 (string):
  string sub-command REPLACE requires at least four arguments.

The error disappears if OPTION_BUILD_HTML_DOCUMENTATION which is on by default is turned off.

The error comes from documentation/CMakeLists.txt executing command
git --git-dir=${CMAKE_SOURCE_DIR}/.git rev-parse --short=10 HEAD
which fails if ${CMAKE_SOURCE_DIR} is not a git repo.

@Albrecht-S : That could be fixed by setting the default value of this option according to whether the source tree contains a .git directory, or by replacing the output of the git command by something else. What do you think ?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/499@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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