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:
sfan5 2024-01-30 14:22:31 +01:00
parent a4f94b7656
commit 8482cc3db8

@ -3,7 +3,8 @@
include(CMakeFindDependencyMacro)
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)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/IrrlichtMtTargets.cmake")