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 configuration error: "if given arguments: "VERSION_LESS" "0.9.9" Unknown arguments specified #5

Open
johanneszellinger opened this issue Oct 10, 2020 · 5 comments

Comments

@johanneszellinger
Copy link

Trying to set up this project with CMake I get the following error ouput:

Could NOT find cppcheck (missing: cppcheck_EXECUTABLE) 
Check cppcheck skipped: cppcheck not found
Could NOT find clang_tidy (missing: clang_tidy_EXECUTABLE) 
Check clang-tidy skipped: clang-tidy not found
CMake Error at C:/GLM/cmake/glm/glmConfig-version.cmake:2 (if):
  if given arguments:

    "VERSION_LESS" "0.9.9"

  Unknown arguments specified
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.18/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  C:/Users/username/source/repos/CGInternals/globjects/globjects-config.cmake:13 (find_dependency)
  source/openll/CMakeLists.txt:10 (find_package)


Configuring incomplete, errors occurred!

GLM version is the latest available. Anyway, I'm not sure how to resolve this issue.
What I have done:

  • Within C:/Users/username/source/repos/CGInternals I have downloaded and copied the repos of all the internal dependencies listed in the Wiki of this project as well as the openll-cpp project itself.
  • GLM and GLFW are stored directly in C:/
  • Configured, Generated and Build all the dependencies using CMake GUI and Visual Studio 2019
  • Tried to configure openll-cpp using CMake GUI, which leads to the error above.
@scheibel
Copy link
Member

The error occurs in globjects where we try to find the glm dependency.
The used file - glmConfig-version.cmake - however, should not be chosen. we expect the file glmConfig.cmake to get used.
I'm still unsure if we use the find_dependency calls correctly.

But I want to rule out some general issues:

  • What is your exact version of glm you want to use? We currently support up to the latest release (0.9.9.8) - not the latest master commit.
  • How do you add openll-cpp as a dependency in your code? Is it find_package(openll) or something different?
  • Do errors occur if you remove the lines 12-14 from the globjects-config.cmake?

scheibel added a commit to cginternals/globjects that referenced this issue May 25, 2022
@scheibel
Copy link
Member

I provided a workaround in globjects (master branch) and will evaluate if this can be considered a fix.

@Jgoldfeder
Copy link

I am getting this error as well. Any updates?

@scheibel
Copy link
Member

scheibel commented Feb 5, 2023

@Jgoldfeder
Can you confirm that you used the current master branch of globjects?

I set up OpenLL on a fresh Ubuntu 22.04 without this error.
For reference, I recently set up a Dockerfile for a whole gloperate setup including OpenLL, maybe this helps:

@xbz-24
Copy link

xbz-24 commented Mar 23, 2024

what is the fix for this, getting same bullshit, any fix?

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

4 participants