]> granicus.if.org Git - check/commitdiff
cmake: add checks for librt functions
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:46 +0000 (03:04 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:46 +0000 (03:04 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@957 64e312b2-a51f-0410-8e61-82d0ca0eb02a

lib/CMakeLists.txt

index 147920913994c9a7aaed002d12c895225d61ed1a..750cb6389b8057e65bede2c188ca707aaddfdd76 100644 (file)
 
 set(SOURCES libcompat.c)
 
+if (NOT HAVE_LIBRT)
+  set(SOURCES ${SOURCES} clock_gettime.c)
+  set(SOURCES ${SOURCES} timer_create.c)
+  set(SOURCES ${SOURCES} timer_delete.c)
+  set(SOURCES ${SOURCES} timer_settime.c)
+endif(NOT HAVE_LIBRT)
+
 if(NOT HAVE_DECL_FILENO AND NOT HAVE__FILENO)
   set(SOURCES ${SOURCES} fileno.c)
 endif(NOT HAVE_DECL_FILENO AND NOT HAVE__FILENO)