CMake: Properly abort when requested system lib is missing
This commit is contained in:
parent
7e1074b140
commit
432d4a2a06
|
@ -62,7 +62,7 @@ function(dolphin_find_optional_system_library library bundled_path)
|
||||||
else()
|
else()
|
||||||
set(prefix ${upperlib})
|
set(prefix ${upperlib})
|
||||||
endif()
|
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.")
|
message(FATAL_ERROR "No system ${library} was found. Please install it or set USE_SYSTEM_${upperlib} to AUTO or OFF.")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue