Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
injae committed Apr 23, 2022
1 parent a954239 commit d5feafc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cppkg/search_cppkg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit d5feafc

Please sign in to comment.