diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-29 18:30:42 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-29 18:30:42 (GMT) |
commit | 74eeb49d4cd0962484ba5ed12c33edc33cec1d94 (patch) | |
tree | 8da62e34d4232ed0e1c858e05b46ba269f893c79 /Modules/CMakeBackwardCompatibilityC.cmake | |
parent | b933ad875b3cada11b0ab99d9a9899049344270d (diff) | |
download | CMake-74eeb49d4cd0962484ba5ed12c33edc33cec1d94.zip CMake-74eeb49d4cd0962484ba5ed12c33edc33cec1d94.tar.gz CMake-74eeb49d4cd0962484ba5ed12c33edc33cec1d94.tar.bz2 |
Do this the right way
Diffstat (limited to 'Modules/CMakeBackwardCompatibilityC.cmake')
-rw-r--r-- | Modules/CMakeBackwardCompatibilityC.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/CMakeBackwardCompatibilityC.cmake b/Modules/CMakeBackwardCompatibilityC.cmake index e481408..1bb8396 100644 --- a/Modules/CMakeBackwardCompatibilityC.cmake +++ b/Modules/CMakeBackwardCompatibilityC.cmake @@ -10,10 +10,12 @@ CHECK_TYPE_SIZE(float CMAKE_SIZEOF_FLOAT) CHECK_TYPE_SIZE(double CMAKE_SIZEOF_DOUBLE) INCLUDE (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake) -CHECK_FUNCTION_EXISTS(gethostbyname CMAKE_HAVE_GETHOSTBYNAME) CHECK_FUNCTION_EXISTS(connect CMAKE_HAVE_CONNECT) CHECK_FUNCTION_EXISTS(remove CMAKE_HAVE_REMOVE) -CHECK_FUNCTION_EXISTS(shmat CMAKE_HAVE_SHMAT) + +INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake) +CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" CMAKE_HAVE_GETHOSTBYNAME) +CHECK_LIBRARY_EXISTS("ipc" "shmat" "" CMAKE_HAVE_GETHOSTBYNAME) INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) CHECK_INCLUDE_FILE("limits.h" CMAKE_HAVE_LIMITS_H) |