diff options
Diffstat (limited to 'Modules/CMakeBackwardCompatibilityC.cmake')
-rw-r--r-- | Modules/CMakeBackwardCompatibilityC.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Modules/CMakeBackwardCompatibilityC.cmake b/Modules/CMakeBackwardCompatibilityC.cmake new file mode 100644 index 0000000..5263941 --- /dev/null +++ b/Modules/CMakeBackwardCompatibilityC.cmake @@ -0,0 +1,22 @@ +# Nothing here yet + +INCLUDE (${CMAKE_ROOT}/Modules/CheckSizeOf.cmake) +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) + +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/CheckIncludeFile.cmake) +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) |