summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeBackwardCompatibilityC.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-12-17 16:55:54 (GMT)
committerBrad King <brad.king@kitware.com>2002-12-17 16:55:54 (GMT)
commitf433028b78d760c808855d0e8a5b2114a4d087d3 (patch)
tree941227f43c35ec21296b7815e1bb5a8c797591d4 /Modules/CMakeBackwardCompatibilityC.cmake
parent6a0a8331ef21e4c51d06b4b4c4d46e57eba3a6a8 (diff)
downloadCMake-f433028b78d760c808855d0e8a5b2114a4d087d3.zip
CMake-f433028b78d760c808855d0e8a5b2114a4d087d3.tar.gz
CMake-f433028b78d760c808855d0e8a5b2114a4d087d3.tar.bz2
ENH: FindX11.cmake module now almost fully duplicates old configure functionality.
Diffstat (limited to 'Modules/CMakeBackwardCompatibilityC.cmake')
-rw-r--r--Modules/CMakeBackwardCompatibilityC.cmake14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/CMakeBackwardCompatibilityC.cmake b/Modules/CMakeBackwardCompatibilityC.cmake
index 04cab0b..c59e273 100644
--- a/Modules/CMakeBackwardCompatibilityC.cmake
+++ b/Modules/CMakeBackwardCompatibilityC.cmake
@@ -18,13 +18,6 @@ IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
CHECK_TYPE_SIZE(float CMAKE_SIZEOF_FLOAT)
CHECK_TYPE_SIZE(double CMAKE_SIZEOF_DOUBLE)
- INCLUDE (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake)
- CHECK_FUNCTION_EXISTS(connect CMAKE_HAVE_CONNECT)
- CHECK_FUNCTION_EXISTS(remove CMAKE_HAVE_REMOVE)
-
- INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
- CHECK_LIBRARY_EXISTS("ipc" "shmat" "" CMAKE_HAVE_GETHOSTBYNAME)
-
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
CHECK_INCLUDE_FILE("limits.h" CMAKE_HAVE_LIMITS_H)
CHECK_INCLUDE_FILE("unistd.h" CMAKE_HAVE_UNISTD_H)
@@ -34,6 +27,13 @@ IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
INCLUDE (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)
INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
+
+ SET (CMAKE_X_CFLAGS "-I${CMAKE_X11_INCLUDE_PATH}" CACHE STRING
+ "X11 extra flags.")
+ SET (CMAKE_X_LIBS "${CMAKE_X_LIBS}" CACHE STRING
+ "Libraries and options used in X11 programs.")
+ SET (CMAKE_HAS_X "${CMAKE_HAS_X}" CACHE INTERNAL "Is X11 around.")
+
INCLUDE (${CMAKE_ROOT}/Modules/FindThreads.cmake)
SET (CMAKE_THREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}" CACHE STRING