cmake: explicitly disable fdatasync when building for OSX.
authorTom Hughes <tom.hughes@palm.com>
Fri, 4 Mar 2011 16:37:34 +0000 (10:37 -0600)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 7 Mar 2011 18:47:29 +0000 (10:47 -0800)
This ensures that the check_function_exists() for fdatasync in the
libeio CMakeLists.txt is not run, since that fails on some versions of
OSX (http://public.kitware.com/Bug/view.php?id=10044).

cmake/configure.cmake

index 81f721e..c055753 100644 (file)
@@ -61,6 +61,8 @@ endif()
 
 if(${node_platform} MATCHES darwin)
   set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework Carbon")
+  # explicitly set this so that we don't check again when building libeio
+  set(HAVE_FDATASYNC 0)
 else()
   # OSX fdatasync() check wrong: http://public.kitware.com/Bug/view.php?id=10044
   check_function_exists(fdatasync HAVE_FDATASYNC)