From 4488026028a1e7583881c88473f7e5e2ea3c2054 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 1 Feb 2017 13:36:43 +1100 Subject: [PATCH] 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. --- search_libs.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/search_libs.cmake b/search_libs.cmake index 7a48a13..a27620d 100644 --- a/search_libs.cmake +++ b/search_libs.cmake @@ -43,5 +43,6 @@ macro(search_libs _variable _symbol) endif() endif () + set (${_variable}_FOUND ${__search_libs_${_symbol}}) set (${_variable} ${__search_libs_${_symbol}_lib}) endmacro()