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:
parent
5b87197002
commit
4488026028
@ -43,5 +43,6 @@ macro(search_libs _variable _symbol)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
set (${_variable}_FOUND ${__search_libs_${_symbol}})
|
||||
set (${_variable} ${__search_libs_${_symbol}_lib})
|
||||
endmacro()
|
||||
|
Loading…
x
Reference in New Issue
Block a user