diff options
-rw-r--r-- | external/unbound/configure_checks.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/external/unbound/configure_checks.cmake b/external/unbound/configure_checks.cmake index 281bcf971..b65b48c23 100644 --- a/external/unbound/configure_checks.cmake +++ b/external/unbound/configure_checks.cmake @@ -104,10 +104,10 @@ function (check_type_exists type variable header default) set(CMAKE_EXTRA_INCLUDE_FILES "${header}") check_type_size("${type}" "${variable}") - if (${variable} STREQUAL "") + if (NOT HAVE_${type}) set("${variable}" "${default}" PARENT_SCOPE) else () - set("${variable}" "" PARENT_SCOPE) + set("${variable}" "FALSE" PARENT_SCOPE) endif () endfunction () |