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

Use GLFW3 all caps to avoid issues on Windows #1598

Closed
wants to merge 2 commits into from

Conversation

S-Dafarra
Copy link
Collaborator

@S-Dafarra S-Dafarra commented Feb 13, 2024

Fixes: #1597

@traversaro
Copy link
Member

Thanks!

A bit of background, FindGLFW3 needs to be capital here as there is https://github.com/robotology/ycm/blob/master/find-modules/FindGLFW3.cmake in YCM. My error was to follow official glfw3 docs (https://www.glfw.org/docs/3.3/build_guide.html#build_link_cmake_package), that instead refer to glfw3, as glfw3 itself ships a glfw3Config.cmake (see for example https://conda-metadata-app.streamlit.app/?q=conda-forge%2Fwin-64%2Fglfw-3.3.9-hcfcfb64_0.conda). To avoid further confusion like this, I would like to deprecate the FindGLFW3 in YCM, and instead use just the upstream glew3Config.cmake file. However, this would not work if we did find_package(GLFW3) here, as glew3Config.cmake will only be found by find_package(glfw3) calls, not find_package(GLFW3) calls (this is due to the fact that the file is named glfw3Config.cmake, if it was named glfw3-config.cmake any call to find_package(glfw3) , find_package(GLFW3) or find_package(GlFw3) would always find glfw3-config.cmake, see https://cmake.org/cmake/help/latest/command/find_package.html#search-modes).

So, to be future friendly, I would stick to find_package(glfw3), and just enable irrlicht if either glfw3_FOUND or GLFW3_FOUND are true, what do you think?

@traversaro
Copy link
Member

@S-Dafarra
Copy link
Collaborator Author

Yeah it rang a bell also to me: ami-iit/yarp-device-openxrheadset@a1eeaed

Your solution sounds good!

… GLFW

Co-authored-by: Silvio Traversaro <silvio.traversaro@iit.it>
@traversaro
Copy link
Member

Superseded by #1599 .

@traversaro traversaro closed this Feb 14, 2024
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

Successfully merging this pull request may close these issues.

IDYNTREE_USES_IRRLICHT is not properly set in Windows even if irrlicht and glfw3 are present in the system
2 participants