From d5feafc063500e5fffb855cec72b61a35397500b Mon Sep 17 00:00:00 2001 From: injae <8687lee@gmail.com> Date: Sat, 23 Apr 2022 18:49:50 +0900 Subject: [PATCH] hotfix --- cppkg/search_cppkg.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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})