56d4bea3baea67f42a74dc678ffde4dcdf4e82a4
[m6w6/libmemcached] / CMake / CheckType.cmake
1 include(CheckTypeSize)
2
3 include(SafeString)
4
5 # check for type (possibly in header.h) and set HAVE_TYPE
6 function(check_type TYPE HEADER)
7 safe_string(${TYPE} TYPE_CONST)
8 SET(CMAKE_EXTRA_INCLUDE_FILES ${HEADER})
9 check_type_size(${TYPE} ${TYPE_CONST} LANGUAGE CXX)
10 SET(CMAKE_EXTRA_INCLUDE_FILES)
11 endfunction(check_type)