forked from Mirrorlandia_minetest/irrlicht
Adjust package config dependency again
Predictably, this broke dynamic linking setups where SDL is not available at build-time (it doesn't need to be).
This commit is contained in:
parent
a4f94b7656
commit
8482cc3db8
@ -3,7 +3,8 @@
|
|||||||
include(CMakeFindDependencyMacro)
|
include(CMakeFindDependencyMacro)
|
||||||
|
|
||||||
if(NOT TARGET IrrlichtMt::IrrlichtMt)
|
if(NOT TARGET IrrlichtMt::IrrlichtMt)
|
||||||
if(@USE_SDL2@)
|
# private dependency only explicitly needed with static libs
|
||||||
|
if(@USE_SDL2@ AND NOT @BUILD_SHARED_LIBS@)
|
||||||
find_dependency(SDL2)
|
find_dependency(SDL2)
|
||||||
endif()
|
endif()
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/IrrlichtMtTargets.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/IrrlichtMtTargets.cmake")
|
||||||
|
Loading…
Reference in New Issue
Block a user