Skip to content

Add Findassimp.cmake module

Claudio requested to merge claudiofantacci/cmake:impl/findassimp into master

With this PR I would like to propose the Findassimp.cmake module to find the assimp.

The need to this find module is due to upstream problems with the cmake config files that have been recently fixed in assimp/pull/2253. However, to date, the fix is not part of any stable release and, consequently, all major distributions ship a wrong assimp config. Only recently, a new release candidate (5.0) has been added in the release list.

Given the above-mentioned problem, I would like to add a Findassimp.cmake that looks for the library and create the assimp::assimp target, as well as define variables that are created by the latest version of assimpTargets-release.cmake.

Note that this module does not call any assimp config file that may be present on the local machine to avoid importing wrong target or parameters. If the user wants to switch and use the assimp config file, must explicitly use find_package(assimp CONFIG).

Edited by Claudio

Merge request reports