search_libs: also set a _FOUND variable

There was no way to differentiate between not needing any library for a
symbol and not finding a symbol. So we add a _FOUND variable indicating
whether the symbol was discovered.
This commit is contained in:
Danny Robson 2017-02-01 13:36:43 +11:00
parent 5b87197002
commit 4488026028

View File

@ -43,5 +43,6 @@ macro(search_libs _variable _symbol)
endif() endif()
endif () endif ()
set (${_variable}_FOUND ${__search_libs_${_symbol}})
set (${_variable} ${__search_libs_${_symbol}_lib}) set (${_variable} ${__search_libs_${_symbol}_lib})
endmacro() endmacro()