aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/configure_checks.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-10-24 15:30:44 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2014-10-24 15:30:44 -0400
commit4b6515cfb59bb9d118b57f8ede4f67ea49dfbb23 (patch)
tree396d6b1a0b0a676f847991a6933bdfd79238d400 /external/unbound/configure_checks.cmake
parentunbound: plumb the libdir up (diff)
downloadmonero-4b6515cfb59bb9d118b57f8ede4f67ea49dfbb23.tar.xz
unbound: fix type checking
Diffstat (limited to '')
-rw-r--r--external/unbound/configure_checks.cmake4
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 ()