Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly checks for git/version from release #154

Open
hobbes1069 opened this issue Apr 11, 2023 · 0 comments
Open

Incorrectly checks for git/version from release #154

hobbes1069 opened this issue Apr 11, 2023 · 0 comments

Comments

@hobbes1069
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant