X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=CMakeLists.txt;h=95eee545179a4b3d48b1603de854cf0faf2205dc;hb=a8ade9abed9404044aed8dfb22bd96f92385c27c;hp=2c80756d4093e81737baba874ecc3dfd8ba97f19;hpb=76169d74298feb3c4976af3f0f10376f56aec38d;p=freeglut diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c80756..95eee54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,6 +107,7 @@ if(UNIX) ENDIF() INCLUDE(CheckIncludeFiles) +INCLUDE(CheckFunctionExists) CHECK_INCLUDE_FILES(sys/types.h HAVE_SYS_TYPES_H) CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H) CHECK_INCLUDE_FILES(sys/time.h HAVE_SYS_TIME_H) @@ -116,6 +117,7 @@ CHECK_INCLUDE_FILES(sys/ioctl.h HAVE_SYS_IOCTL_H) CHECK_INCLUDE_FILES(fcntl.h HAVE_FCNTL_H) CHECK_INCLUDE_FILES(errno.h HAVE_ERRNO_H) CHECK_INCLUDE_FILES(usbhid.h HAVE_USBHID_H) +CHECK_FUNCTION_EXISTS(gettimeofday HAVE_GETTIMEOFDAY) # The generated config.h is placed in the project's build directory, just to # ensure that all CMake-generated files are kept away from the main source tree.