Skip to content

Commit

Permalink
Added include_directories for non-standard HDF5 library locations (e.…
Browse files Browse the repository at this point in the history
…g. Xenial)
  • Loading branch information
tsaubergine committed Jun 3, 2016
1 parent 846e017 commit de1de73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ endif()
## Sqlite3
find_package(Sqlite3 QUIET)
set(SQLITE_DOC_STRING "Enable SQLite3 database components (requires libsqlite3-dev: http://www.sqlite.org)")
# find resources directory
if(SQLITE3_FOUND)
option(enable_sqlite ${SQLITE_DOC_STRING} ON)
else()
Expand All @@ -95,9 +94,9 @@ endif()
## HDF5
find_package(HDF5 QUIET COMPONENTS C CXX)
set(HDF5_DOC_STRING "Enable HDF5 file format tools (requires libhdf5-dev: https://www.hdfgroup.org/HDF5)")
# find resources directory
if(HDF5_FOUND)
option(enable_hdf5 ${HDF5_DOC_STRING} ON)
include_directories(${HDF5_INCLUDE_DIRS})
else()
option(enable_hdf5 ${HDF5_DOC_STRING} OFF)
message(">> setting enable_hdf5 to OFF ... if you need this functionality: 1) install libhdf5-dev; 2) run cmake -Denable_hdf5=ON")
Expand Down

0 comments on commit de1de73

Please sign in to comment.