]> granicus.if.org Git - check/commitdiff
cmake: define HAVE_FORK if fork is detected
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:18 +0000 (03:04 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:18 +0000 (03:04 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@939 64e312b2-a51f-0410-8e61-82d0ca0eb02a

CMakeLists.txt

index ef2e213e458a74e6e9d3586b524890b988e640b8..8cc8ae00d54e4df0a4b35c36653b8cde3f397e49 100644 (file)
@@ -188,6 +188,10 @@ check_function_exists(_snprintf HAVE__SNPRINTF)
 check_function_exists(_strdup HAVE__STRDUP)
 check_function_exists(_write HAVE__WRITE)
 
+if(HAVE_FORK)
+    add_definitions(-DHAVE_FORK=1)
+endif(HAVE_FORK)
+
 ###############################################################################
 # Check defines
 set(headers "limits.h")