2 IF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
3 INCLUDE(CMakeVS7BackwardCompatibility)
4 SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
5 ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
6 IF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
7 INCLUDE(CMakeVS6BackwardCompatibility)
8 SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
9 ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
11 IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
12 INCLUDE (CheckTypeSize)
13 CHECK_TYPE_SIZE(int CMAKE_SIZEOF_INT)
14 CHECK_TYPE_SIZE(long CMAKE_SIZEOF_LONG)
15 CHECK_TYPE_SIZE("void*" CMAKE_SIZEOF_VOID_P)
16 CHECK_TYPE_SIZE(char CMAKE_SIZEOF_CHAR)
17 CHECK_TYPE_SIZE(short CMAKE_SIZEOF_SHORT)
18 CHECK_TYPE_SIZE(float CMAKE_SIZEOF_FLOAT)
19 CHECK_TYPE_SIZE(double CMAKE_SIZEOF_DOUBLE)
21 INCLUDE (CheckIncludeFile)
22 CHECK_INCLUDE_FILE("limits.h" CMAKE_HAVE_LIMITS_H)
23 CHECK_INCLUDE_FILE("unistd.h" CMAKE_HAVE_UNISTD_H)
24 CHECK_INCLUDE_FILE("sys/prctl.h" CMAKE_HAVE_SYS_PRCTL_H)
25 CHECK_INCLUDE_FILE("pthread.h" CMAKE_HAVE_PTHREAD_H)
27 INCLUDE (TestBigEndian)
28 TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)
31 IF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
32 SET (CMAKE_X_CFLAGS "" CACHE STRING "X11 extra flags.")
33 ELSE("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
34 SET (CMAKE_X_CFLAGS "-I${X11_X11_INCLUDE_PATH}" CACHE STRING
36 ENDIF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
37 SET (CMAKE_X_LIBS "${X11_LIBRARIES}" CACHE STRING
38 "Libraries and options used in X11 programs.")
39 SET (CMAKE_HAS_X "${X11_FOUND}" CACHE INTERNAL "Is X11 around.")
43 SET (CMAKE_THREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}" CACHE STRING
44 "Thread library used.")
46 SET (CMAKE_USE_PTHREADS "${CMAKE_USE_PTHREADS_INIT}" CACHE BOOL
47 "Use the pthreads library.")
49 SET (CMAKE_USE_WIN32_THREADS "${CMAKE_USE_WIN32_THREADS_INIT}" CACHE BOOL
50 "Use the win32 thread library.")
52 SET (CMAKE_HP_PTHREADS ${CMAKE_HP_PTHREADS_INIT} CACHE BOOL
55 SET (CMAKE_USE_SPROC ${CMAKE_USE_SPROC_INIT} CACHE BOOL
57 ENDIF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
64 CMAKE_USE_WIN32_THREADS