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

CMakeLists.txt

index 992df3736c55446978001c7ed0e73ba68bba67f0..5b056e63a9418156a0c7e9026c6ce53c7b7897b1 100644 (file)
@@ -192,6 +192,8 @@ check_function_exists(_write HAVE__WRITE)
 
 if(HAVE_FORK)
     add_definitions(-DHAVE_FORK=1)
+else(HAVE_FORK)
+    add_definitions(-DHAVE_FORK=0)
 endif(HAVE_FORK)
 
 ###############################################################################