ConfigureChecks.cmake 453 B

1234567891011121314151617
  1. include(CheckCXXSourceCompiles)
  2. include(CheckTypeSize)
  3. check_cxx_source_compiles(
  4. "
  5. #include <iconv.h>
  6. // this declaration will fail when there already exists a non const char** version which returns size_t
  7. double iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
  8. int main() { return 0; }
  9. "
  10. HAVE_ICONV_CONST
  11. )
  12. CHECK_TYPE_SIZE("void*" SIZEOF_VOID_P)
  13. message(STATUS "Size of void* is ${SIZEOF_VOID_P}")