diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2014-06-16 17:37:42 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2016-11-29 23:42:28 (GMT) |
commit | 2098d3f7eb62c682870461e41263ec2add750d30 (patch) | |
tree | 996a23a3ab167a516dad2adbcea570eeda77702d /config | |
parent | 1e9e19a0758b0c45372bf6cc70b596fad6a642d6 (diff) | |
download | hdf5-2098d3f7eb62c682870461e41263ec2add750d30.zip hdf5-2098d3f7eb62c682870461e41263ec2add750d30.tar.gz hdf5-2098d3f7eb62c682870461e41263ec2add750d30.tar.bz2 |
Add support for FastBit index plugin
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake/FindFASTBIT.cmake | 22 | ||||
-rw-r--r-- | config/cmake/H5pubconf.h.in | 5 |
2 files changed, 26 insertions, 1 deletions
diff --git a/config/cmake/FindFASTBIT.cmake b/config/cmake/FindFASTBIT.cmake new file mode 100644 index 0000000..2d95f45 --- /dev/null +++ b/config/cmake/FindFASTBIT.cmake @@ -0,0 +1,22 @@ +# - Try to find FastBit +# Once done this will define +# FASTBIT_FOUND - System has FastBit +# FASTBIT_INCLUDE_DIRS - The FastBit include directories +# FASTBIT_LIBRARIES - The libraries needed to use FastBit + +find_path(FASTBIT_INCLUDE_DIR iapi.h + HINTS /usr/local/include /usr/include) + +find_library(FASTBIT_LIBRARY NAMES fastbit + PATHS /usr/local/lib /usr/lib) + +set(FASTBIT_INCLUDE_DIRS ${FASTBIT_INCLUDE_DIR}) +set(FASTBIT_LIBRARIES ${FASTBIT_LIBRARY}) + +include(FindPackageHandleStandardArgs) +# handle the QUIETLY and REQUIRED arguments and set FASTBIT_FOUND to TRUE +# if all listed variables are TRUE +find_package_handle_standard_args(FASTBIT DEFAULT_MSG + FASTBIT_INCLUDE_DIR FASTBIT_LIBRARY) + +mark_as_advanced(FASTBIT_INCLUDE_DIR FASTBIT_LIBRARY) diff --git a/config/cmake/H5pubconf.h.in b/config/cmake/H5pubconf.h.in index 18f5dd3..5502168 100644 --- a/config/cmake/H5pubconf.h.in +++ b/config/cmake/H5pubconf.h.in @@ -230,9 +230,12 @@ /* Define if we have Indexing support */ #cmakedefine H5_HAVE_INDEXING @H5_HAVE_INDEXING@ -/* Define if we have support for Alacrity */ +/* Define if we have support for ALACRITY */ #cmakedefine H5_HAVE_ALACRITY @H5_HAVE_ALACRITY@ +/* Define if we have support for FastBit */ +#cmakedefine H5_HAVE_FASTBIT @H5_HAVE_FASTBIT@ + /* Define to 1 if you have the <pthread.h> header file. */ #cmakedefine H5_HAVE_PTHREAD_H @H5_HAVE_PTHREAD_H@ |