opencamlib icon indicating copy to clipboard operation
opencamlib copied to clipboard

Incorrectly checks for git/version from release

Open hobbes1069 opened this issue 2 years ago • 0 comments

The cmake configuration checks for git even when cmake is executed from a versioned source download.

Cmake needs to be adjusted to skip this check in this case.

Error:

-- Found Git: /usr/bin/git (found version "2.40.0") 
CMake Warning at src/version_string.cmake:38 (message):
  Git failed (not a repo, or no tags).
Call Stack (most recent call first):
  src/CMakeLists.txt:185 (include)


-- version_string.cmake read from file GIT_COMMIT_ID: 
-- OpenCAMLib version: ..
CMake Error at src/version_string.cmake:39 (file):
  file failed to open for reading (No such file or directory):

    /builddir/build/BUILD/opencamlib-2023.01.11/src/git-tag.txt
Call Stack (most recent call first):
  src/CMakeLists.txt:185 (include)


CMake Error at src/version_string.cmake:40 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  src/CMakeLists.txt:185 (include)

hobbes1069 avatar Apr 11 '23 02:04 hobbes1069