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

Add the installation prefix of "glm" to CMAKE_PREFIX_PATH or set "glm_DIR" #402

Open
smarchevsky opened this issue Nov 5, 2020 · 1 comment

Comments

@smarchevsky
Copy link

make -D CMAKE_PREFIX_PATH=../../glm ..
Do nothing, it cant find it anyway.

@scheibel
Copy link
Member

I encountered a change in the setup of glm (don't know when it happened), where the file CMake searches for is in a different directory.

In a former setup that we used until recently, the file glmConfig.cmake was generated in the root directory of glm. With this setup, both your approaches - (1) CMAKE_PREFIX_PATH="../../glm" and (2) glm_DIR="../../glm" - should have worked.

For the more current releases and branches of glm, this file moved to cmake/glm/glmConfig.cmake. I tested this on the glm 0.9.9.8 tag.
With this version (and presumably other newer ones as well) your configuration command should look something like this

> cmake -DCMAKE_PREFIX_PATH="../../glm/cmake/glm" ...

or this

> glm_DIR="../../glm/cmake/glm" cmake ...

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

2 participants