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

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

Closed
S-Dafarra opened this issue Feb 13, 2024 · 2 comments

Comments

@S-Dafarra
Copy link
Collaborator

During a recent demo we noticed that when recompiling the superbuild on a Windows machine, the IDYNTREE_USES_IRRLICHT was getting disabled even if irrlicht and glfw3 are properly found in the system.

I tried to replicate it in my system and I noticed the same.

A perfect occasion to use the CMake debugging functionality of Visual Studio.

I blocked the execution at this line

ycm_ep_helper(iDynTree TYPE GIT

Here I noted that the GLFW3_FOUND variable is set to true

image

On the other nad, inside the ycm_ep_helper function, in the arguments list, I see that -DIDYNTREE_USES_IRRLICHT is empty, i.e.

-DIDYNTREE_USES_IRRLICHT:BOOL=

image
while for example -DIDYNTREE_USES_PYTHON:BOOL=True

I believe that the problem is the case. In Windows, the variable is all capital, i.e. GLFW3_FOUND, while we check the content of glfw3_FOUND.

I think that the problem can be fixed by using

find_package(GLFW3 QUIET)

instead

@S-Dafarra
Copy link
Collaborator Author

Related PR: #1598

@traversaro
Copy link
Member

Fixed by #1599 .

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 a pull request may close this issue.

2 participants