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

CMake error in 3rdparty/GetVersionFromGitTag.cmake #170

Open
metafarion opened this issue Feb 26, 2022 · 2 comments
Open

CMake error in 3rdparty/GetVersionFromGitTag.cmake #170

metafarion opened this issue Feb 26, 2022 · 2 comments

Comments

@metafarion
Copy link

CMake is complaining an awful lot about deprecated behaviors at build time, so I'm assuming this has something to do with CMake being too new. This occurs with CMake 3.20.5, which is currently the oldest version available in the Gentoo package manager.
I can get the build to finish by commenting the line 3rdparty/GetVersionFromGitTag.cmake:57, though the resulting executable crashes for seemingly a different reason (although maybe not, I'm not super good at interpreting error output).

build/ $ cmake ../
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at CMakeLists.txt:8 (cmake_policy):
  The OLD behavior for policy CMP0043 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The CXX compiler identification is GNU 11.2.0
-- The C compiler identification is GNU 11.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
CMake Error at 3rdparty/GetVersionFromGitTag.cmake:57 (string):
  string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:21 (include)
@jg18
Copy link
Member

jg18 commented Mar 1, 2022

Hi, thanks for your interest in wxLauncher, but Knossos is now the standard launcher for games and mods that run on the FreeSpace Open engine.

@MageJohn
Copy link
Contributor

Hey @metafarion, this happens because the command isn't being run inside a git repository. You can work around the problem by getting the source code with git instead of downloading the zip archive.

That said, I think it should be a supported use case to build the software from outside of the git repository, so I think this should be fixed.

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

3 participants