Commit 58d2debe authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Merge from Kitware modifications branch

parent eeae3c49
......@@ -3,3 +3,6 @@
CreateConverters.tcl crlf=input
JavaWrap.tcl crlf=input
SwigIt crlf=input
config.guess crlf=input
config.sub crlf=input
configure crlf=input
OPTION(XDMF_BUILD_SHARED_LIBS "Build Shared XDMF Library" ${ICE_BUILD_SHARED_LIBS})
OPTION(XDMF_HAVE_NDGM "Build NDGM Support into XDMF" ${ICE_HAVE_NDGM})
OPTION(XDMF_BUILD_PYTHON "Wrap classes into the Python interpreted language" ${ICE_BUILD_PYTHON})
FIND_LIBRARY(XDMF_Z_LIBRARY z
PROJECT(Xdmf)
INCLUDE_DIRECTORIES(${Xdmf_SOURCE_DIR}/Ice/libsrc)
INCLUDE_DIRECTORIES(${Xdmf_SOURCE_DIR}/libsrc
${Xdmf_BINARY_DIR}/libsrc)
SET (LIBRARY_OUTPUT_PATH ${Xdmf_BINARY_DIR}/bin/ CACHE PATH "Single output directory for building all libraries.")
SET (EXECUTABLE_OUTPUT_PATH ${Xdmf_BINARY_DIR}/bin/ CACHE PATH "Single output directory for building all executables.")
INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
OPTION(XDMF_SYSTEM_HDF5 "Use sytstem HDF5" ON)
IF(XDMF_SYSTEM_HDF5)
FIND_LIBRARY(HDF5_LIBRARY
hdf5
/usr/lib
/usr/local/lib
)
LINK_DIRECTORIES(${XDMF_Z_LIBRARY})
SUBDIRS(libsrc binsrc vtk)
/opt/lib
/usr/local/lib)
FIND_PATH(HDF5_INCLUDE_PATH
H5Ipublic.h
/usr/include
/opt/include
/usr/local/include)
MESSAGE(STATUS "Using system HDF5")
INCLUDE_DIRECTORIES(${HDF5_INCLUDE_PATH})
SET(HDF5_LIBRARY ${HDF5_LIBRARY})
ELSE(XDMF_SYSTEM_HDF5)
INCLUDE_DIRECTORIES(${Xdmf_SOURCE_DIR}/Utilities/hdf5
${Xdmf_BINARY_DIR}/Utilities/hdf5)
SUBDIRS(Utilities)
SET(HDF5_LIBRARY vtkhdf5)
ENDIF(XDMF_SYSTEM_HDF5)
FIND_PATH(EXPAT_INCLUDE_DIR expat.h
/usr/local/include
/usr/include
)
FIND_LIBRARY(EXPAT_LIBRARY expat
/usr/lib
/usr/local/lib
)
INCLUDE_DIRECTORIES(${EXPAT_INCLUDE_DIR})
SUBDIRS(libsrc binsrc)
OPTION(XDMF_BUILD_VTK "Build VTK reader" OFF)
IF(XDMF_BUILD_VTK)
SUBDIRS(vtk)
ENDIF(XDMF_BUILD_VTK)
# Add the testing directories
OPTION(XDMF_BUILD_TESTING "Test the project" OFF)
IF(XDMF_BUILD_TESTING)
ENABLE_TESTING()
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
ENDIF(XDMF_BUILD_TESTING)
# Dashboard is opened for submissions for a 24 hour period starting at
# the specified NIGHLY_START_TIME. Time is specified in 24 hour format.
SET (NIGHTLY_START_TIME "0:30:00 EDT")
# Dart server to submit results (used by client)
SET (DROP_SITE "public.kitware.com")
SET (DROP_LOCATION "/incoming")
SET (DROP_SITE_USER "ftpuser")
SET (DROP_SITE_PASSWORD "public")
SET (TRIGGER_SITE
"http://${DROP_SITE}/cgi-bin/Submit-Xdmf-TestingResults.pl")
# Project Home Page
SET (PROJECT_URL "http://www.arl.hpc.mil/ice/")
# Dart server configuration
SET (ROLLUP_URL "http://${DROP_SITE}/cgi-bin/xdmf-rollup-dashboard.sh")
#SET (CVS_WEB_URL "http://${DROP_SITE}/cgi-bin/cvsweb.cgi/Xdmf/")
#SET (CVS_WEB_CVSROOT "Xdmf")
#SET (DOXYGEN_URL "http://${DROP_SITE}/" )
#SET (GNATS_WEB_URL "http://${DROP_SITE}/")
# copy over the testing logo
#CONFIGURE_FILE(${PARAVIEW_SOURCE_DIR}/Web/Art/ParaViewLogo.gif ${PARAVIEW_BINARY_DIR}/Testing/HTML/TestingResults/Icons/Logo.gif COPYONLY)
/* IceConfig.h. Generated automatically by configure. */
/********************************************************/
/* */
/* ICE Host Dependent Configuration File */
/* */
/********************************************************/
#ifdef _WIN32
# include "windows.h"
#endif
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
/* #undef ICE_WORDS_BIGENDIAN */
/* The number of bytes in a double. */
#define ICE_SIZEOF_DOUBLE 8
/* The number of bytes in a float. */
#define ICE_SIZEOF_FLOAT 4
/* The number of bytes in a int. */
#define ICE_SIZEOF_INT 4
/* The number of bytes in a unsigned long long. */
#define ICE_SIZEOF_UNSIGNED_LONG_LONG 8
/* Define if you have the GL library (-lGL). */
#define ICE_HAVE_LIBGL 1
/* Define if you have the X11 library (-lX11). */
/* #undef ICE_HAVE_LIBX11 */
/* Define if you have the Xmu library (-lXmu). */
/* #undef ICE_HAVE_LIBXMU */
/* Define if you have the curses library (-lcurses). */
#define ICE_HAVE_LIBCURSES 1
/* Define if you have the dl library (-ldl). */
#define ICE_HAVE_LIBDL 1
/* Define if you have the m library (-lm). */
#define ICE_HAVE_LIBM 1
/* Define if you have the mpi library (-lmpi). */
#define ICE_HAVE_LIBMPI 1
/* Define if you have the sun library (-lsun). */
/* #undef ICE_HAVE_LIBSUN */
#define ICE_SYSTEM "Linux-2.4.9-34smp"
#define ICE_HOST Linux
#define ICE_BYTE_ORDER_LITTLE
#define ICE_HAVE_FCNTL
#ifndef _WIN32
# define ICE_HAVE_NETINET
# define ICE_HAVE_MMAN
# define ICE_have_64_bit_int
#endif
/* Size of Atomic Datum */
typedef void ICE_VOID;
typedef void * ICE_PTR;
typedef char ICE_CHAR;
typedef unsigned char ICE_8_INT;
typedef int ICE_32_INT;
#ifdef _WIN32
typedef unsigned long ICE_64_INT;
#else
typedef unsigned long long ICE_64_INT;
#endif
typedef float ICE_FLOAT;
typedef double ICE_DOUBLE;
/********************************************************/
SUBDIRS(hdf5)
\ No newline at end of file
#define SIMPLE_TEST(x) int main(){ x; return 0; }
#ifdef TIME_WITH_SYS_TIME
/* Time with sys/time test */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int
main ()
{
if ((struct tm *) 0)
return 0;
;
return 0;
}
#endif
#ifdef STDC_HEADERS
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
int main() { return 0; }
#endif
#ifdef HAVE_TM_ZONE
#include <sys/types.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#include <time.h>
SIMPLE_TEST(struct tm tm; tm.tm_zone);
#endif /* HAVE_TM_ZONE */
#ifdef HAVE_ATTRIBUTE
SIMPLE_TEST(int __attribute__((unused)) x);
#endif /* HAVE_ATTRIBUTE */
#ifdef HAVE_FUNCTION
SIMPLE_TEST((void)__FUNCTION__);
#endif /* HAVE_FUNCTION */
#ifdef HAVE_TM_GMTOFF
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#include <time.h>
SIMPLE_TEST(struct tm tm; tm.tm_gmtoff=0);
#endif /* HAVE_TM_GMTOFF */
#ifdef HAVE_TIMEZONE
#include <sys/types.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#include <time.h>
SIMPLE_TEST(timezone=0);
#endif /* HAVE_TIMEZONE */
#ifdef HAVE_STRUCT_TIMEZONE
#include <sys/types.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#include <time.h>
SIMPLE_TEST(struct timezone tz; tz.tz_minuteswest=0);
#endif /* HAVE_STRUCT_TIMEZONE */
#ifdef HAVE_STAT_ST_BLOCKS
#include <sys/stat.h>
SIMPLE_TEST(struct stat sb; sb.st_blocks=0);
#endif /* HAVE_STAT_ST_BLOCKS */
#ifdef PRINTF_LL_WIDTH
#define TO_STRING0(x) #x
#define TO_STRING(x) TO_STRING0(x)
#ifdef HAVE_LONG_LONG
# define LL_TYPE long long
#else /* HAVE_LONG_LONG */
# define LL_TYPE __int64
#endif /* HAVE_LONG_LONG */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
char *s = malloc(128);
LL_TYPE x = (LL_TYPE)1048576 * (LL_TYPE)1048576;
sprintf(s,"%" TO_STRING(PRINTF_LL_WIDTH) "d",x);
exit(strcmp(s,"1099511627776"));
}
#endif /* PRINTF_LL_WIDTH */
PROJECT(VTKHDF5 C++)
INCLUDE_REGULAR_EXPRESSION("^.*\\.[ch]$")
IF(WIN32)
SET(ssize_t long)
SET(SIZEOF_SIZE_T 4)
SET(SIZEOF_SSIZE_T 4)
SET(HAVE_LARGE_HSIZET 1)
ENDIF(WIN32)
# Include all the necessary files for macros
INCLUDE (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake)
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFiles.cmake)
INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
INCLUDE (${CMAKE_ROOT}/Modules/CheckSymbolExists.cmake)
INCLUDE (${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
INCLUDE (${CMAKE_ROOT}/Modules/FindZLIB.cmake)
# This macro checks if the symbol exists in the library and if it
# does, it appends library to the list.
SET(LINK_LIBS "")
MACRO(CHECK_LIBRARY_EXISTS_CONCAT LIBRARY SYMBOL VARIABLE)
CHECK_LIBRARY_EXISTS("${LIBRARY};${LINK_LIBS}" ${SYMBOL} ""
${VARIABLE})
IF(${VARIABLE})
SET(LINK_LIBS ${LINK_LIBS} ${LIBRARY})
ENDIF(${VARIABLE})
ENDMACRO(CHECK_LIBRARY_EXISTS_CONCAT)
CHECK_LIBRARY_EXISTS_CONCAT("m" printf HAVE_LIBM)
CHECK_LIBRARY_EXISTS_CONCAT("ws2_32" printf HAVE_LIBWS2_32)
SET(USE_INCLUDES "")
# Check if header file exists and add it to the list.
MACRO(CHECK_INCLUDE_FILE_CONCAT FILE VARIABLE)
CHECK_INCLUDE_FILES("${USE_INCLUDES};${FILE}" ${VARIABLE})
IF(${VARIABLE})
SET(USE_INCLUDES ${USE_INCLUDES} ${FILE})
ENDIF(${VARIABLE})
ENDMACRO(CHECK_INCLUDE_FILE_CONCAT)
CHECK_INCLUDE_FILE_CONCAT("globus/common.h" HAVE_GLOBUS_COMMON_H)
CHECK_INCLUDE_FILE_CONCAT("io.h" HAVE_IO_H)
CHECK_INCLUDE_FILE_CONCAT("mfhdf.h" HAVE_MFHDF_H)
CHECK_INCLUDE_FILE_CONCAT("netinet/tcp.h" HAVE_NETINET_TCP_H)
CHECK_INCLUDE_FILE_CONCAT("pdb.h" HAVE_PDB_H)
CHECK_INCLUDE_FILE_CONCAT("pthread.h" HAVE_PTHREAD_H)
CHECK_INCLUDE_FILE_CONCAT("setjmp.h" HAVE_SETJMP_H)
CHECK_INCLUDE_FILE_CONCAT("srbclient.h" HAVE_SRBCLIENT_H)
CHECK_INCLUDE_FILE_CONCAT("stddef.h" HAVE_STDDEF_H)
CHECK_INCLUDE_FILE_CONCAT("stdint.h" HAVE_STDINT_H)
CHECK_INCLUDE_FILE_CONCAT("sys/filio.h" HAVE_SYS_FILIO_H)
CHECK_INCLUDE_FILE_CONCAT("sys/ioctl.h" HAVE_SYS_IOCTL_H)
CHECK_INCLUDE_FILE_CONCAT("sys/proc.h" HAVE_SYS_PROC_H)
CHECK_INCLUDE_FILE_CONCAT("sys/resource.h" HAVE_SYS_RESOURCE_H)
CHECK_INCLUDE_FILE_CONCAT("sys/socket.h" HAVE_SYS_SOCKET_H)
CHECK_INCLUDE_FILE_CONCAT("sys/stat.h" HAVE_SYS_STAT_H)
CHECK_INCLUDE_FILE_CONCAT("sys/sysinfo.h" HAVE_SYS_SYSINFO_H)
CHECK_INCLUDE_FILE_CONCAT("sys/time.h" HAVE_SYS_TIME_H)
CHECK_INCLUDE_FILE_CONCAT("sys/timeb.h" HAVE_SYS_TIMEB_H)
CHECK_INCLUDE_FILE_CONCAT("sys/types.h" HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILE_CONCAT("unistd.h" HAVE_UNISTD_H)
CHECK_INCLUDE_FILE_CONCAT("winsock.h" HAVE_WINSOCK_H)
CHECK_INCLUDE_FILE_CONCAT("zlib.h" HAVE_ZLIB_H)
CHECK_TYPE_SIZE(char SIZEOF_CHAR)
CHECK_TYPE_SIZE(short SIZEOF_SHORT)
CHECK_TYPE_SIZE(int SIZEOF_INT)
CHECK_TYPE_SIZE(long SIZEOF_LONG)
CHECK_TYPE_SIZE(float SIZEOF_FLOAT)
CHECK_TYPE_SIZE(double SIZEOF_DOUBLE)
CHECK_TYPE_SIZE("long double" SIZEOF_LONG_DOUBLE)
CHECK_TYPE_SIZE(int8_t SIZEOF_INT8_T)
CHECK_TYPE_SIZE(uint8_t SIZEOF_UINT8_T)
CHECK_TYPE_SIZE(int_least8_t SIZEOF_INT_LEAST8_T)
CHECK_TYPE_SIZE(uint_least8_t SIZEOF_UINT_LEAST8_T)
CHECK_TYPE_SIZE(int_fast8_t SIZEOF_INT_FAST8_T)
CHECK_TYPE_SIZE(uint_fast8_t SIZEOF_UINT_FAST8_T)
CHECK_TYPE_SIZE(int16_t SIZEOF_INT16_T)
CHECK_TYPE_SIZE(uint16_t SIZEOF_UINT16_T)
CHECK_TYPE_SIZE(int_least16_t SIZEOF_INT_LEAST16_T)
CHECK_TYPE_SIZE(uint_least16_t SIZEOF_UINT_LEAST16_T)
CHECK_TYPE_SIZE(int_fast16_t SIZEOF_INT_FAST16_T)
CHECK_TYPE_SIZE(uint_fast16_t SIZEOF_UINT_FAST16_T)
CHECK_TYPE_SIZE(int32_t SIZEOF_INT32_T)
CHECK_TYPE_SIZE(uint32_t SIZEOF_UINT32_T)
CHECK_TYPE_SIZE(int_least32_t SIZEOF_INT_LEAST32_T)
CHECK_TYPE_SIZE(uint_least32_t SIZEOF_UINT_LEAST32_T)
CHECK_TYPE_SIZE(int_fast32_t SIZEOF_INT_FAST32_T)
CHECK_TYPE_SIZE(uint_fast32_t SIZEOF_UINT_FAST32_T)
CHECK_TYPE_SIZE(int64_t SIZEOF_INT64_T)
CHECK_TYPE_SIZE(uint64_t SIZEOF_UINT64_T)
CHECK_TYPE_SIZE(jdshkjfhdks SIZEOF_JDSHKJFHDKS)
CHECK_TYPE_SIZE(int_least64_t SIZEOF_INT_LEAST64_T)
CHECK_TYPE_SIZE(uint_least64_t SIZEOF_UINT_LEAST64_T)
CHECK_TYPE_SIZE(int_fast64_t SIZEOF_INT_FAST64_T)
CHECK_TYPE_SIZE(uint_fast64_t SIZEOF_UINT_FAST64_T)
CHECK_TYPE_SIZE(size_t SIZEOF_SIZE_T)
CHECK_TYPE_SIZE(ssize_t SIZEOF_SSIZE_T)
CHECK_TYPE_SIZE(off_t SIZEOF_OFF_T)
CHECK_TYPE_SIZE(__int64 SIZEOF___INT64)
CHECK_TYPE_SIZE("long long" SIZEOF_LONG_LONG)
# For other tests to use the same libraries
SET(CMAKE_REQUIRED_LIBRARIES ${LINK_LIBS})
# Check for some functions that are used
CHECK_FUNCTION_EXISTS(strdup HAVE_STRDUP)
CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS(system HAVE_SYSTEM)
CHECK_FUNCTION_EXISTS(vsnprintf HAVE_VSNPRINTF)
CHECK_FUNCTION_EXISTS(waitpid HAVE_WAITPID)
CHECK_FUNCTION_EXISTS(signal HAVE_SIGNAL)
CHECK_FUNCTION_EXISTS(ioctl HAVE_IOCTL)
CHECK_FUNCTION_EXISTS(sigaction HAVE_SIGACTION)
CHECK_FUNCTION_EXISTS(getpwuid HAVE_GETPWUID)
CHECK_FUNCTION_EXISTS(getrusage HAVE_GETRUSAGE)
CHECK_FUNCTION_EXISTS(gettimeofday HAVE_GETTIMEOFDAY)
CHECK_FUNCTION_EXISTS(longjmp HAVE_LONGJMP)
CHECK_FUNCTION_EXISTS(fork HAVE_FORK)
CHECK_FUNCTION_EXISTS(difftime HAVE_DIFFTIME)
CHECK_FUNCTION_EXISTS(gethostname HAVE_GETHOSTNAME)
CHECK_FUNCTION_EXISTS(sigaction HAVE_SIGACTION)
CHECK_SYMBOL_EXISTS(TIOCGWINSZ "sys/ioctl.h" HAVE_TIOCGWINSZ)
CHECK_SYMBOL_EXISTS(TIOCGETD "sys/ioctl.h" HAVE_TIOCGETD)
# For other other specific tests, use this macro.
MACRO(OTHER_INTERNAL_TEST OTHER_TEST)
IF("${OTHER_TEST}" MATCHES "^${OTHER_TEST}$")
SET(MACRO_CHECK_FUNCTION_DEFINITIONS
"-D${OTHER_TEST} ${CMAKE_REQUIRED_FLAGS}")
SET(OTHER_TEST_ADD_LIBRARIES)
IF(CMAKE_REQUIRED_LIBRARIES)
SET(OTHER_TEST_ADD_LIBRARIES
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
ENDIF(CMAKE_REQUIRED_LIBRARIES)
IF(HAVE_SYS_TIME_H)
SET(MACRO_CHECK_FUNCTION_DEFINITIONS
"${MACRO_CHECK_FUNCTION_DEFINITIONS} -DHAVE_SYS_TIME_H")
ENDIF(HAVE_SYS_TIME_H)
MESSAGE(STATUS "Performing Other Test ${OTHER_TEST}")
MESSAGE(STATUS "Test: ${MACRO_CHECK_FUNCTION_DEFINITIONS}")
TRY_COMPILE(${OTHER_TEST}
${CMAKE_BINARY_DIR}
${VTKHDF5_SOURCE_DIR}/CMake/HDF5Tests.c
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
"${OTHER_TEST_ADD_LIBRARIES}"
OUTPUT_VARIABLE OUTPUT)
IF(${OTHER_TEST})
SET(${OTHER_TEST} 1 CACHE INTERNAL "Other test ${FUNCTION}")
MESSAGE(STATUS "Performing Other Test ${OTHER_TEST} - Success")
ELSE(${OTHER_TEST})
MESSAGE(STATUS "Performing Other Test ${OTHER_TEST} - Failed")
SET(${OTHER_TEST} "" CACHE INTERNAL "Other test ${FUNCTION}")
WRITE_FILE(${CMAKE_BINARY_DIR}/CMakeError.log
"Performing Other Test ${OTHER_TEST} failed with the following output:\n"
"${OUTPUT}\n" APPEND)
ENDIF(${OTHER_TEST})
ENDIF("${OTHER_TEST}" MATCHES "^${OTHER_TEST}$")
ENDMACRO(OTHER_INTERNAL_TEST)
# Do curl specific tests
FOREACH(CURL_TEST
TIME_WITH_SYS_TIME
STDC_HEADERS
HAVE_TM_ZONE
HAVE_ATTRIBUTE
HAVE_FUNCTION
HAVE_TM_GMTOFF
HAVE_TIMEZONE
HAVE_STRUCT_TIMEZONE
HAVE_STAT_ST_BLOCKS
HAVE_ATTRIBUTE
HAVE_FUNCTION
)
OTHER_INTERNAL_TEST(${CURL_TEST})
ENDFOREACH(CURL_TEST)
MESSAGE(STATUS "Performing Other Test ${OTHER_TEST}")
IF("${PRINTF_LL_WIDTH}" MATCHES "^${PRINTF_LL_WIDTH}$")
SET(PRINT_LL_FOUND 0)
MESSAGE(STATUS "Checking for apropriate format for 64 bit long:")
FOREACH(HDF5_PRINTF_LL l64 l L q ll)
SET(CURRENT_TEST_DEFINITIONS "-DPRINTF_LL_WIDTH=${HDF5_PRINTF_LL}")
IF(SIZEOF_LONG_LONG)
SET(CURRENT_TEST_DEFINITIONS "${CURRENT_TEST_DEFINITIONS} -DHAVE_LONG_LONG")
ENDIF(SIZEOF_LONG_LONG)
TRY_RUN(HDF5_PRINTF_LL_TEST_RUN HDF5_PRINTF_LL_TEST_COMPILE
${VTKHDF5_BINARY_DIR}/HDF5Tests
${VTKHDF5_SOURCE_DIR}/CMake/HDF5Tests.c
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${CURRENT_TEST_DEFINITIONS}
OUTPUT_VARIABLE OUTPUT)
IF(HDF5_PRINTF_LL_TEST_COMPILE)
IF(HDF5_PRINTF_LL_TEST_RUN MATCHES 0)
SET(PRINTF_LL_WIDTH "\"${HDF5_PRINTF_LL}\"" CACHE INTERNAL
"Width for printf for type `long long' or `__int64', us. `ll")
SET(PRINT_LL_FOUND 1)
ELSE(HDF5_PRINTF_LL_TEST_RUN MATCHES 0)
#MESSAGE("Width with ${HDF5_PRINTF_LL} failed with result: ${HDF5_PRINTF_LL_TEST_RUN}")
ENDIF(HDF5_PRINTF_LL_TEST_RUN MATCHES 0)
ELSE(HDF5_PRINTF_LL_TEST_COMPILE)
WRITE_FILE(${CMAKE_BINARY_DIR}/CMakeError.log
"Test PRINTF_LL_WIDTH for ${HDF5_PRINTF_LL} failed with the following output:\n"
"${OUTPUT}\n" APPEND)
ENDIF(HDF5_PRINTF_LL_TEST_COMPILE)
ENDFOREACH(HDF5_PRINTF_LL)
IF(PRINT_LL_FOUND)
MESSAGE(STATUS "Checking for apropriate format for 64 bit long: found ${PRINTF_LL_WIDTH}")
ELSE(PRINT_LL_FOUND)
MESSAGE(STATUS "Checking for apropriate format for 64 bit long: not found")
SET(PRINTF_LL_WIDTH "\"unknown\"" CACHE INTERNAL
"Width for printf for type `long long' or `__int64', us. `ll")
ENDIF(PRINT_LL_FOUND)
ENDIF("${PRINTF_LL_WIDTH}" MATCHES "^${PRINTF_LL_WIDTH}$")
SET(common_SRCS
H5.c H5FDmulti.c H5HG.c H5Oname.c H5T.c
H5A.c H5FDsec2.c H5HL.c H5Onull.c H5TB.c
H5AC.c H5FDsrb.c H5I.c H5Osdspace.c H5TS.c
H5B.c H5FDstdio.c H5MF.c H5Oshared.c H5Tbit.c
H5D.c H5FDstream.c H5MM.c H5Ostab.c H5Tconv.c
H5E.c H5FL.c H5O.c H5P.c H5Tvlen.c
H5F.c H5Farray.c H5Oattr.c H5R.c H5V.c
H5FD.c H5Fcontig.c H5Ocomp.c H5S.c H5Z.c
H5FDcore.c H5Fistore.c H5Ocont.c H5Sall.c H5Zdeflate.c
H5FDdpss.c H5Fseq.c H5Odtype.c H5Shyper.c
H5FDfamily.c H5G.c H5Oefl.c H5Smpio.c
H5FDgass.c H5Gent.c H5Ofill.c H5Snone.c
H5FDlog.c H5Gnode.c H5Olayout.c H5Spoint.c
H5FDmpio.c H5Gstab.c H5Omtime.c H5Sselect.c
)
INCLUDE_DIRECTORIES(${VTKHDF5_SOURCE_DIR}
${VTKHDF5_BINARY_DIR})
SET(H5_const ${const})
SET(H5_HAVE_TM_ZONE ${HAVE_TM_ZONE})
SET(H5_HAVE_TZNAME ${HAVE_TZNAME})
SET(H5_inline ${inline})
SET(H5_off_t ${off_t})
SET(H5_size_t ${size_t})
SET(H5_STDC_HEADERS ${STDC_HEADERS})
SET(H5_TIME_WITH_SYS_TIME ${TIME_WITH_SYS_TIME})
SET(H5_TM_IN_SYS_TIME ${TM_IN_SYS_TIME})
SET(H5_WORDS_BIGENDIAN ${WORDS_BIGENDIAN})
SET(H5_HAVE_ATTRIBUTE ${HAVE_ATTRIBUTE})
SET(H5_HAVE_FUNCTION ${HAVE_FUNCTION})
SET(H5_HAVE_PARALLEL ${HAVE_PARALLEL})
SET(H5_HAVE_THREADSAFE ${HAVE_THREADSAFE})
SET(H5_HAVE_LARGE_HSIZET ${HAVE_LARGE_HSIZET})
SET(H5_WANT_H5_V1_2_COMPAT ${WANT_H5_V1_2_COMPAT})
SET(H5_PRINTF_LL_WIDTH ${PRINTF_LL_WIDTH})
SET(H5_HAVE_TM_GMTOFF ${HAVE_TM_GMTOFF})
SET(H5_HAVE___TM_GMTOFF ${HAVE___TM_GMTOFF})
SET(H5_HAVE_TIMEZONE ${HAVE_TIMEZONE})
SET(H5_HAVE_STRUCT_TIMEZONE ${HAVE_STRUCT_TIMEZONE})
SET(H5_HAVE_STAT_ST_BLOCKS ${HAVE_STAT_ST_BLOCKS})
SET(H5_HAVE_STRUCT_TEXT_INFO ${HAVE_STRUCT_TEXT_INFO})
SET(H5_HAVE_STRUCT_VIDEOCONFIG ${HAVE_STRUCT_VIDEOCONFIG})
SET(H5_HAVE_TIOCGETD ${HAVE_TIOCGETD})
SET(H5_HAVE_TIOCGWINSZ ${HAVE_TIOCGWINSZ})
SET(H5_HAVE_GASS ${HAVE_GASS})
SET(H5_HAVE_SRB ${HAVE_SRB})
SET(H5_HAVE_GRIDSTORAGE ${HAVE_GRIDSTORAGE})
SET(H5_HAVE_STREAM ${HAVE_STREAM})
SET(H5_HAVE_SOCKLEN_T ${HAVE_SOCKLEN_T})
SET(H5_SIZEOF___INT64 ${SIZEOF___INT64})
SET(H5_SIZEOF_CHAR ${SIZEOF_CHAR})
SET(H5_SIZEOF_DOUBLE ${SIZEOF_DOUBLE})
SET(H5_SIZEOF_FLOAT ${SIZEOF_FLOAT})
SET(H5_SIZEOF_INT ${SIZEOF_INT})
SET(H5_SIZEOF_INT16_T ${SIZEOF_INT16_T})
SET(H5_SIZEOF_INT32_T ${SIZEOF_INT32_T})
SET(H5_SIZEOF_INT64_T ${SIZEOF_INT64_T})
SET(H5_SIZEOF_INT8_T ${SIZEOF_INT8_T})
SET(H5_SIZEOF_INT_FAST16_T ${SIZEOF_INT_FAST16_T})
SET(H5_SIZEOF_INT_FAST32_T ${SIZEOF_INT_FAST32_T})
SET(H5_SIZEOF_INT_FAST64_T ${SIZEOF_INT_FAST64_T})
SET(H5_SIZEOF_INT_FAST8_T ${SIZEOF_INT_FAST8_T})
SET(H5_SIZEOF_INT_LEAST16_T ${SIZEOF_INT_LEAST16_T})
SET(H5_SIZEOF_INT_LEAST32_T ${SIZEOF_INT_LEAST32_T})
SET(H5_SIZEOF_INT_LEAST64_T ${SIZEOF_INT_LEAST64_T})
SET(H5_SIZEOF_INT_LEAST8_T ${SIZEOF_INT_LEAST8_T})
SET(H5_SIZEOF_LONG ${SIZEOF_LONG})
SET(H5_SIZEOF_LONG_DOUBLE ${SIZEOF_LONG_DOUBLE})
SET(H5_SIZEOF_LONG_LONG ${SIZEOF_LONG_LONG})
SET(H5_SIZEOF_OFF_T ${SIZEOF_OFF_T})
SET(H5_SIZEOF_SHORT ${SIZEOF_SHORT})
SET(H5_SIZEOF_SIZE_T ${SIZEOF_SIZE_T})
SET(H5_SIZEOF_SSIZE_T ${SIZEOF_SSIZE_T})
SET(H5_SIZEOF_UINT16_T ${SIZEOF_UINT16_T})
SET(H5_SIZEOF_UINT32_T ${SIZEOF_UINT32_T})
SET(H5_SIZEOF_UINT64_T ${SIZEOF_UINT64_T})
SET(H5_SIZEOF_UINT8_T ${SIZEOF_UINT8_T})
SET(H5_SIZEOF_UINT_FAST16_T ${SIZEOF_UINT_FAST16_T})
SET(H5_SIZEOF_UINT_FAST32_T ${SIZEOF_UINT_FAST32_T})
SET(H5_SIZEOF_UINT_FAST64_T ${SIZEOF_UINT_FAST64_T})
SET(H5_SIZEOF_UINT_FAST8_T ${SIZEOF_UINT_FAST8_T})
SET(H5_SIZEOF_UINT_LEAST16_T ${SIZEOF_UINT_LEAST16_T})
SET(H5_SIZEOF_UINT_LEAST32_T ${SIZEOF_UINT_LEAST32_T})
SET(H5_SIZEOF_UINT_LEAST64_T ${SIZEOF_UINT_LEAST64_T})
SET(H5_SIZEOF_UINT_LEAST8_T ${SIZEOF_UINT_LEAST8_T})
SET(H5_HAVE_BSDGETTIMEOFDAY ${HAVE_BSDGETTIMEOFDAY})
SET(H5_HAVE_GETCONSOLESCREENBUFFERINFO ${HAVE_GETCONSOLESCREENBUFFERINFO})
SET(H5_HAVE__GETVIDEOCONFIG ${HAVE__GETVIDEOCONFIG})
SET(H5_HAVE__SCRSIZE ${HAVE__SCRSIZE})
SET(H5_HAVE_COMPRESS2 ${HAVE_COMPRESS2})
SET(H5_HAVE_DIFFTIME ${HAVE_DIFFTIME})
SET(H5_HAVE_FORK ${HAVE_FORK})
SET(H5_HAVE_FSEEK64 ${HAVE_FSEEK64})
SET(H5_HAVE_GETDENTS64 ${HAVE_GETDENTS64})
SET(H5_HAVE_GETHOSTNAME ${HAVE_GETHOSTNAME})
SET(H5_HAVE_GETPWUID ${HAVE_GETPWUID})
SET(H5_HAVE_GETRUSAGE ${HAVE_GETRUSAGE})
SET(H5_HAVE_GETTEXTINFO ${HAVE_GETTEXTINFO})
SET(H5_HAVE_GETTIMEOFDAY ${HAVE_GETTIMEOFDAY})