Improve FindIrrlicht.cmake module
authorMarkus Koschany <apo@gambaru.de>
Sat, 21 Feb 2015 16:46:33 +0000 (17:46 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Sat, 21 Feb 2015 17:21:10 +0000 (18:21 +0100)
commit47d9b4d9aa80e0268501b8eb927b37ee3660c503
treeb3790bac459e92c97eb4e3cd50cb713f485dce58
parentc5defe7a11f58048acfa4568ea784f31d9ffa276
Improve FindIrrlicht.cmake module

Linux distributions prefer to link against a shared version of the Irrlicht
engine instead of using embedded code copies of the same. Search for this
shared version first and use that but fall back to the static version if it
does not exist.

This also fixes https://github.com/minetest/minetest/issues/2163
cmake/Modules/FindIrrlicht.cmake