2002-09-25 01:58:38 +04:00
|
|
|
# Nothing here yet
|
2002-12-05 21:44:11 +03:00
|
|
|
IF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
|
2004-08-27 06:52:53 +04:00
|
|
|
INCLUDE(CMakeVS7BackwardCompatibility)
|
2002-12-05 21:44:11 +03:00
|
|
|
SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
|
|
|
|
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
|
|
|
|
IF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
|
2004-08-27 06:52:53 +04:00
|
|
|
INCLUDE(CMakeVS6BackwardCompatibility)
|
2002-12-05 21:44:11 +03:00
|
|
|
SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
|
|
|
|
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
|
|
|
|
|
|
|
|
IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
|
2004-08-27 06:52:53 +04:00
|
|
|
INCLUDE (CheckTypeSize)
|
2002-12-05 21:44:11 +03:00
|
|
|
CHECK_TYPE_SIZE(int CMAKE_SIZEOF_INT)
|
|
|
|
CHECK_TYPE_SIZE(long CMAKE_SIZEOF_LONG)
|
|
|
|
CHECK_TYPE_SIZE("void*" CMAKE_SIZEOF_VOID_P)
|
|
|
|
CHECK_TYPE_SIZE(char CMAKE_SIZEOF_CHAR)
|
|
|
|
CHECK_TYPE_SIZE(short CMAKE_SIZEOF_SHORT)
|
|
|
|
CHECK_TYPE_SIZE(float CMAKE_SIZEOF_FLOAT)
|
|
|
|
CHECK_TYPE_SIZE(double CMAKE_SIZEOF_DOUBLE)
|
|
|
|
|
2004-08-27 06:52:53 +04:00
|
|
|
INCLUDE (CheckIncludeFile)
|
2002-12-05 21:44:11 +03:00
|
|
|
CHECK_INCLUDE_FILE("limits.h" CMAKE_HAVE_LIMITS_H)
|
|
|
|
CHECK_INCLUDE_FILE("unistd.h" CMAKE_HAVE_UNISTD_H)
|
|
|
|
CHECK_INCLUDE_FILE("sys/prctl.h" CMAKE_HAVE_SYS_PRCTL_H)
|
|
|
|
CHECK_INCLUDE_FILE("pthread.h" CMAKE_HAVE_PTHREAD_H)
|
|
|
|
|
2004-08-27 06:52:53 +04:00
|
|
|
INCLUDE (TestBigEndian)
|
2002-12-05 21:44:11 +03:00
|
|
|
TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)
|
2004-08-27 06:52:53 +04:00
|
|
|
INCLUDE (FindX11)
|
2002-12-17 19:55:54 +03:00
|
|
|
|
2003-01-08 19:45:48 +03:00
|
|
|
IF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
|
2003-01-02 17:57:59 +03:00
|
|
|
SET (CMAKE_X_CFLAGS "" CACHE STRING "X11 extra flags.")
|
2003-01-08 19:45:48 +03:00
|
|
|
ELSE("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
|
|
|
|
SET (CMAKE_X_CFLAGS "-I${X11_X11_INCLUDE_PATH}" CACHE STRING
|
2003-01-02 17:57:59 +03:00
|
|
|
"X11 extra flags.")
|
2003-01-08 19:45:48 +03:00
|
|
|
ENDIF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
|
|
|
|
SET (CMAKE_X_LIBS "${X11_LIBRARIES}" CACHE STRING
|
2002-12-17 19:55:54 +03:00
|
|
|
"Libraries and options used in X11 programs.")
|
2003-01-08 19:45:48 +03:00
|
|
|
SET (CMAKE_HAS_X "${X11_FOUND}" CACHE INTERNAL "Is X11 around.")
|
2002-12-17 19:55:54 +03:00
|
|
|
|
2004-08-27 06:52:53 +04:00
|
|
|
INCLUDE (FindThreads)
|
2002-12-05 21:44:11 +03:00
|
|
|
|
|
|
|
SET (CMAKE_THREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}" CACHE STRING
|
2002-11-12 22:19:13 +03:00
|
|
|
"Thread library used.")
|
|
|
|
|
2002-12-05 21:44:11 +03:00
|
|
|
SET (CMAKE_USE_PTHREADS "${CMAKE_USE_PTHREADS_INIT}" CACHE BOOL
|
2002-11-12 22:19:13 +03:00
|
|
|
"Use the pthreads library.")
|
|
|
|
|
2002-12-05 21:44:11 +03:00
|
|
|
SET (CMAKE_USE_WIN32_THREADS "${CMAKE_USE_WIN32_THREADS_INIT}" CACHE BOOL
|
2002-11-12 22:19:13 +03:00
|
|
|
"Use the win32 thread library.")
|
|
|
|
|
2002-12-05 21:44:11 +03:00
|
|
|
SET (CMAKE_HP_PTHREADS ${CMAKE_HP_PTHREADS_INIT} CACHE BOOL
|
2002-11-12 22:19:13 +03:00
|
|
|
"Use HP pthreads.")
|
|
|
|
|
2002-12-05 21:44:11 +03:00
|
|
|
SET (CMAKE_USE_SPROC ${CMAKE_USE_SPROC_INIT} CACHE BOOL
|
2002-11-12 22:19:13 +03:00
|
|
|
"Use sproc libs.")
|
2002-12-05 21:44:11 +03:00
|
|
|
ENDIF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
|
2002-11-12 22:19:13 +03:00
|
|
|
|
|
|
|
MARK_AS_ADVANCED(
|
2002-12-20 19:56:08 +03:00
|
|
|
CMAKE_HP_PTHREADS
|
2002-11-12 22:19:13 +03:00
|
|
|
CMAKE_THREAD_LIBS
|
|
|
|
CMAKE_USE_PTHREADS
|
|
|
|
CMAKE_USE_SPROC
|
2002-12-20 19:56:08 +03:00
|
|
|
CMAKE_USE_WIN32_THREADS
|
|
|
|
CMAKE_X_CFLAGS
|
|
|
|
CMAKE_X_LIBS
|
|
|
|
)
|
2002-11-12 22:19:13 +03:00
|
|
|
|