Skip to content

Commit

Permalink
cmake: explicitly disable fdatasync when building for OSX.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
thughes authored and ry committed Mar 7, 2011
1 parent db6ea10 commit 7a272d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a272d9

Please sign in to comment.