Updated formatting of documentation plus a little reorganization.
[cmake.git] / Modules / CMakeBackwardCompatibilityC.cmake
blob03333845360b1778451cb72d3a6a0b9db0a54afc
2 # Nothing here yet
3 IF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
4   INCLUDE(CMakeVS7BackwardCompatibility)
5   SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
6 ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
7 IF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
8   INCLUDE(CMakeVS6BackwardCompatibility)
9   SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
10 ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
12 IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
13   INCLUDE (CheckTypeSize)
14   CHECK_TYPE_SIZE(int      CMAKE_SIZEOF_INT)
15   CHECK_TYPE_SIZE(long     CMAKE_SIZEOF_LONG)
16   CHECK_TYPE_SIZE("void*"  CMAKE_SIZEOF_VOID_P)
17   CHECK_TYPE_SIZE(char     CMAKE_SIZEOF_CHAR)
18   CHECK_TYPE_SIZE(short    CMAKE_SIZEOF_SHORT)
19   CHECK_TYPE_SIZE(float    CMAKE_SIZEOF_FLOAT)
20   CHECK_TYPE_SIZE(double   CMAKE_SIZEOF_DOUBLE)
22   INCLUDE (CheckIncludeFile)
23   CHECK_INCLUDE_FILE("limits.h"       CMAKE_HAVE_LIMITS_H)
24   CHECK_INCLUDE_FILE("unistd.h"       CMAKE_HAVE_UNISTD_H)
25   CHECK_INCLUDE_FILE("pthread.h"      CMAKE_HAVE_PTHREAD_H)
27   INCLUDE (CheckIncludeFiles)
28   CHECK_INCLUDE_FILES("sys/types.h;sys/prctl.h"    CMAKE_HAVE_SYS_PRCTL_H)
30   INCLUDE (TestBigEndian)
31   TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)
32   INCLUDE (FindX11)
34   IF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
35     SET (CMAKE_X_CFLAGS "" CACHE STRING "X11 extra flags.")
36   ELSE("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
37     SET (CMAKE_X_CFLAGS "-I${X11_X11_INCLUDE_PATH}" CACHE STRING
38          "X11 extra flags.")
39   ENDIF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
40   SET (CMAKE_X_LIBS "${X11_LIBRARIES}" CACHE STRING
41        "Libraries and options used in X11 programs.")
42   SET (CMAKE_HAS_X "${X11_FOUND}" CACHE INTERNAL "Is X11 around.")
44   INCLUDE (FindThreads)
46   SET (CMAKE_THREAD_LIBS        "${CMAKE_THREAD_LIBS_INIT}" CACHE STRING 
47     "Thread library used.")
49   SET (CMAKE_USE_PTHREADS       "${CMAKE_USE_PTHREADS_INIT}" CACHE BOOL
50      "Use the pthreads library.")
52   SET (CMAKE_USE_WIN32_THREADS  "${CMAKE_USE_WIN32_THREADS_INIT}" CACHE BOOL
53        "Use the win32 thread library.")
55   SET (CMAKE_HP_PTHREADS        ${CMAKE_HP_PTHREADS_INIT} CACHE BOOL
56      "Use HP pthreads.")
58   SET (CMAKE_USE_SPROC          ${CMAKE_USE_SPROC_INIT} CACHE BOOL 
59      "Use sproc libs.")
60 ENDIF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
62 MARK_AS_ADVANCED(
63 CMAKE_HP_PTHREADS
64 CMAKE_THREAD_LIBS
65 CMAKE_USE_PTHREADS
66 CMAKE_USE_SPROC
67 CMAKE_USE_WIN32_THREADS
68 CMAKE_X_CFLAGS
69 CMAKE_X_LIBS