CMake: Properly abort when requested system lib is missing

This commit is contained in:
TellowKrinkle 2024-11-06 21:02:12 -06:00
parent 7e1074b140
commit 432d4a2a06
1 changed files with 1 additions and 1 deletions

View File

@ -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()