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 at ingredients/CMakeLists.txt:27 (target_link_libraries) #12

Open
mrveress opened this issue Apr 16, 2023 · 0 comments
Open

Comments

@mrveress
Copy link

mrveress commented Apr 16, 2023

Hi! I'm kinda starter C++ (CMake :-)) guy, so maybe somebody can help me here.
So i'm on Manjaro Linux (arch).
glm, glfw, glut and gl was installed OK.
I running CMake and configuring the build. Little details:

CMAKE_BUILD_TYPE=
CMAKE_INSTALL_PREFIX=/usr/local
glfw3_DIR=/usr/lib/cmake/glfw3
glm_DIR=/usr/lib/cmake/glm

So it's find libs, but then apparently I see this:

Running Linux compiling. Options [GLVND] for modern OpenGL or [LEGACY] for historical OpenGl.
Setting GLVND option.
Configuring done (0.0s)
CMake Error at ingredients/CMakeLists.txt:27 (target_link_libraries):
Target "ingredients" links to:

glm::glm

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Generating done (0.1s)

Can somebody suggest some help with this? Not sure is this about PUBLIC? I see that target_link_libraries correctly placed after "add_library" in ingredients/CMaleLists.txt. I tried to google something, but nothing helpful. Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant