Skip to content

Commit

Permalink
CMake docs say to prefer CHECK_SYMBOL_EXISTS
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins committed Mar 16, 2024
1 parent a782cb7 commit b64e82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/cmake/ConfigureChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ if (HDF5_ENABLE_DIRECT_VFD)
# flag. No other form of direct I/O is supported. This feature also
# requires posix_memalign().
CHECK_SYMBOL_EXISTS (O_DIRECT "fcntl.h" HAVE_O_DIRECT)
CHECK_FUNCTION_EXISTS (posix_memalign "stdlib.h" HAVE_POSIX_MEMALIGN)
CHECK_SYMBOL_EXISTS (posix_memalign "stdlib.h" HAVE_POSIX_MEMALIGN)

if (HAVE_O_DIRECT AND HAVE_POSIX_MEMALIGN)
set (${HDF_PREFIX}_HAVE_DIRECT 1)
Expand Down

0 comments on commit b64e82b

Please sign in to comment.