forked from Mirrorlandia_minetest/minetest
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
This commit is contained in:
parent
c5defe7a11
commit
47d9b4d9aa
@ -44,7 +44,7 @@ else()
|
|||||||
/usr/include/irrlicht
|
/usr/include/irrlicht
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(IRRLICHT_LIBRARY NAMES libIrrlicht.a Irrlicht
|
FIND_LIBRARY(IRRLICHT_LIBRARY NAMES libIrrlicht.so libIrrlicht.a Irrlicht
|
||||||
PATHS
|
PATHS
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
/usr/lib
|
/usr/lib
|
||||||
|
Loading…
Reference in New Issue
Block a user