Commit bd5f036a authored by Dave Demarle's avatar Dave Demarle
Browse files

ENH: remove xdmf1 not that we have switched to xdmf2

parent 1215a14d
#
# Check if the system supports 64 bit streams
#
# CHECK_FOR_64BIT_STREAMS - macro which checks the existence of 64 bit streams
# VARIABLE - variable to return result
#
MACRO(CHECK_FOR_64BIT_STREAMS VARIABLE)
IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
SET(MACRO_CHECK_FOR_64BIT_STREAMS_FLAGS ${CMAKE_REQUIRED_FLAGS})
IF(CMAKE_NO_ANSI_STREAM_HEADERS)
SET(MACRO_CHECK_FOR_64BIT_STREAMS_FLAGS
"${MACRO_CHECK_FOR_64BIT_STREAMS_FLAGS} -DNO_ANSI")
ENDIF(CMAKE_NO_ANSI_STREAM_HEADERS)
IF(SIZEOF_LONG_LONG)
SET(MACRO_CHECK_FOR_64BIT_STREAMS_FLAGS
"${MACRO_CHECK_FOR_64BIT_STREAMS_FLAGS} -DSIZEOF_LONG_LONG")
ENDIF(SIZEOF_LONG_LONG)
IF(SIZEOF___INT64)
SET(MACRO_CHECK_FOR_64BIT_STREAMS_FLAGS
"${MACRO_CHECK_FOR_64BIT_STREAMS_FLAGS} -DSIZEOF___INT64")
ENDIF(SIZEOF___INT64)
MESSAGE(STATUS "Check if system supports 64 bit streams")
TRY_COMPILE(${VARIABLE}
${CMAKE_BINARY_DIR}
${Xdmf_SOURCE_DIR}/CMake/CheckFor64BitStreams.cxx
CMAKE_FLAGS
-DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FOR_64BIT_STREAMS_FLAGS}
OUTPUT_VARIABLE OUTPUT)
IF(${VARIABLE})
MESSAGE(STATUS "Check if system supports 64 bit streams - yes")
SET(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}")
ELSE(${VARIABLE})
MESSAGE(STATUS "Check if system supports 64 bit streams - no")
SET(${VARIABLE} "" CACHE INTERNAL "Have include ${INCLUDE}")
WRITE_FILE(${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log
"Determining if the system supports 64 bit streams "
"failed with the following output:\n"
"${OUTPUT}\n" APPEND)
ENDIF(${VARIABLE})
ENDIF("${VARIABLE}" MATCHES "^${VARIABLE}$")
ENDMACRO(CHECK_FOR_64BIT_STREAMS)
#ifdef NO_ANSI
# include <iostream.h>
#else
# include <iostream>
#endif
#if defined(SIZEOF_LONG_LONG)
typedef long long t64;
#elif defined(SIZEOF___INT64)
typedef __int64 t64;
#else
#error No 64 bit types
#endif
int main()
{
t64 foo;
cin >> foo;
return 0;
}
#
# Find the native EXPAT includes and library
#
# This module defines
# EXPAT_INCLUDE_DIR, where to find expat.h, etc.
# EXPAT_LIBRARIES, the libraries to link against to use EXPAT.
# EXPAT_FOUND, If false, do not try to use EXPAT.
# also defined, but not for general use are
# EXPAT_LIBRARY, where to find the EXPAT library.
FIND_PATH(EXPAT_INCLUDE_DIR expat.h
/usr/local/include
/usr/include
)
FIND_LIBRARY(EXPAT_LIBRARY expat
/usr/lib
/usr/local/lib
)
IF(EXPAT_INCLUDE_DIR)
IF(EXPAT_LIBRARY)
SET( EXPAT_FOUND "YES" )
SET( EXPAT_LIBRARIES ${EXPAT_LIBRARY} )
ENDIF(EXPAT_LIBRARY)
ENDIF(EXPAT_INCLUDE_DIR)
FIND_PROGRAM(PYTHON_EXECUTABLE
NAMES python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python
PATHS
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.2\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\1.6\\InstallPath]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\1.5\\InstallPath]
)
MARK_AS_ADVANCED(PYTHON_EXECUTABLE)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment