From 8482cc3db8192107b2cfc15d41d5337716bb4349 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 30 Jan 2024 14:22:31 +0100 Subject: [PATCH] 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). --- Config.cmake.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Config.cmake.in b/Config.cmake.in index 8ce271ca..6a55a6f6 100644 --- a/Config.cmake.in +++ b/Config.cmake.in @@ -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")