summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2014-05-30 21:08:56 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2014-05-30 21:08:56 (GMT)
commit050904860b5c7bfbf8e001bf130abedd43986dea (patch)
treee0713cdc45d4324fc9178a95420963442a3252c7 /config
parent18d08ee4e75592081f9fc22d9814c8ed8194ace1 (diff)
downloadhdf5-050904860b5c7bfbf8e001bf130abedd43986dea.zip
hdf5-050904860b5c7bfbf8e001bf130abedd43986dea.tar.gz
hdf5-050904860b5c7bfbf8e001bf130abedd43986dea.tar.bz2
[svn-r25230] Add support for ALACRITY indexing package
Update CMakeLists / H5X Add H5_HAVE_ALACRITY macro
Diffstat (limited to 'config')
-rw-r--r--config/cmake/FindALACRITY.cmake22
-rw-r--r--config/cmake/H5pubconf.h.in3
2 files changed, 25 insertions, 0 deletions
diff --git a/config/cmake/FindALACRITY.cmake b/config/cmake/FindALACRITY.cmake
new file mode 100644
index 0000000..d8c32cc
--- /dev/null
+++ b/config/cmake/FindALACRITY.cmake
@@ -0,0 +1,22 @@
+# - Try to find ALACRITY
+# Once done this will define
+# ALACRITY_FOUND - System has ALACRITY
+# ALACRITY_INCLUDE_DIRS - The ALACRITY include directories
+# ALACRITY_LIBRARIES - The libraries needed to use ALACRITY
+
+find_path(ALACRITY_INCLUDE_DIR alacrity.h
+ HINTS /usr/local/include /usr/include)
+
+find_library(ALACRITY_LIBRARY NAMES alacrity
+ PATHS /usr/local/lib /usr/lib)
+
+set(ALACRITY_INCLUDE_DIRS ${ALACRITY_INCLUDE_DIR})
+set(ALACRITY_LIBRARIES ${ALACRITY_LIBRARY})
+
+include(FindPackageHandleStandardArgs)
+# handle the QUIETLY and REQUIRED arguments and set ALACRITY_FOUND to TRUE
+# if all listed variables are TRUE
+find_package_handle_standard_args(ALACRITY DEFAULT_MSG
+ ALACRITY_INCLUDE_DIR ALACRITY_LIBRARY)
+
+mark_as_advanced(ALACRITY_INCLUDE_DIR ALACRITY_LIBRARY)
diff --git a/config/cmake/H5pubconf.h.in b/config/cmake/H5pubconf.h.in
index 026934e..d1bc50c 100644
--- a/config/cmake/H5pubconf.h.in
+++ b/config/cmake/H5pubconf.h.in
@@ -317,6 +317,9 @@
/* Define if we have Indexing support */
#cmakedefine H5_HAVE_INDEXING @H5_HAVE_INDEXING@
+/* Define if we have support for Alacrity */
+#cmakedefine H5_HAVE_ALACRITY @H5_HAVE_ALACRITY@
+
/* Define to 1 if you have the <pthread.h> header file. */
#cmakedefine H5_HAVE_PTHREAD_H @H5_HAVE_PTHREAD_H@