|
|
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 ] | |
|
| |