-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix FindAssimp on Windows #371
Conversation
Actually, looking a bit at the history of this file, it seems that it was added by @claudiofantacci in #229 with the explicit goal of not using the CMake config file of assimp, as that was frequently broken. Indeed, unfortunately the assimp cmake config is still broken in Ubuntu 20.04, see https://bugs.launchpad.net/ubuntu/+source/assimp/+bug/1882427 . In iDynTree I have a workaround for that in https://github.com/robotology/idyntree/blob/v3.0.0/cmake/iDynTreeDependencies.cmake#L93 . Furthermore, in the long term all this issue should be solved by assimp/assimp#3455 . However, I am not sure how we should proceed with this PR. I opened it to avoid forgetting about it, but I don't know the best way to proceed. Possible options:
|
fyi @xEnVrE |
In iDynTree to avoid the problem I just added a
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This comment has been minimized.
This comment has been minimized.
df88b60
to
84070e0
Compare
The logic of FindAssimp is broken on Windows, as on VS2019 it looks only for assimp libraries compiled under VS2019 (i.e. with the -vc150 suffix) but VS2019 is perfectly compatible with assimp libraries compiled with VS2015 or VS2017. This was causing the problem reported in robotology/idyntree#832 (comment) .
The fix is to first look for an assimp CMake config file in the system, and only do the manual search if this is not found.