diff --git a/cppkg/search_cppkg.cmake b/cppkg/search_cppkg.cmake index ac51ef4..2c53a24 100644 --- a/cppkg/search_cppkg.cmake +++ b/cppkg/search_cppkg.cmake @@ -17,8 +17,9 @@ function(search_cppkg) find_package(${name} ${ARG_VERSION} ${ARG_UNPARSED_ARGUMENTS} QUIET) string(TOUPPER ${name} upper_name) string(COMPARE EQUAL "${name}_DIR-NOTFOUND" "${${name}_DIR}" is_empty) - if(${${name}_FOUND} EQUAL 0) - set(${name}_found FALSE PARENT_SCOPE) + if(${${name}_FOUND}) + set(${name}_found TRUE PARENT_SCOPE) + #set(${name}_found FALSE PARENT_SCOPE) elseif(is_empty) set(${name}_found FALSE PARENT_SCOPE) elseif(NOT ${${upper_name}_FOUND})