From 432d4a2a06b408827014987df2b55d72d08a5a6a Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Wed, 6 Nov 2024 21:02:12 -0600 Subject: [PATCH] CMake: Properly abort when requested system lib is missing --- CMake/DolphinLibraryTools.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/DolphinLibraryTools.cmake b/CMake/DolphinLibraryTools.cmake index f7f0bce46e..025900dad5 100644 --- a/CMake/DolphinLibraryTools.cmake +++ b/CMake/DolphinLibraryTools.cmake @@ -62,7 +62,7 @@ function(dolphin_find_optional_system_library library bundled_path) else() set(prefix ${upperlib}) endif() - if((NOT ${found}) AND (NOT ${RESOLVED_USE_SYSTEM_${upperlib}} STREQUAL "AUTO")) + if((NOT ${prefix}_FOUND) AND (NOT ${RESOLVED_USE_SYSTEM_${upperlib}} STREQUAL "AUTO")) message(FATAL_ERROR "No system ${library} was found. Please install it or set USE_SYSTEM_${upperlib} to AUTO or OFF.") endif() endif()