diff options
author | Brad King <brad.king@kitware.com> | 2017-03-07 13:22:31 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-03-07 13:22:37 (GMT) |
commit | 1e1cb41c46d5247c437b384fa702cfe774aaf501 (patch) | |
tree | 395d3aa6c87eef74f3736832ae9b3b71c477a6c5 /Modules | |
parent | fda91f4099d4ebf1b53592e56a29694a7837810e (diff) | |
parent | c6bef559f308ea6715a3395562ee66e8f8825b9d (diff) | |
download | CMake-1e1cb41c46d5247c437b384fa702cfe774aaf501.zip CMake-1e1cb41c46d5247c437b384fa702cfe774aaf501.tar.gz CMake-1e1cb41c46d5247c437b384fa702cfe774aaf501.tar.bz2 |
Merge topic 'FindHDF5-lang-include-dirs'
c6bef559 FindHDF5: set HDF5_<lang>_INCLUDE_DIRS in all cases
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !548
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindHDF5.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index 5e1b520..4884174 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -69,6 +69,9 @@ # HDF5_C_DEFINITIONS -- Required compiler definitions for HDF5 C bindings # HDF5_CXX_DEFINITIONS -- Required compiler definitions for HDF5 C++ bindings # HDF5_Fortran_DEFINITIONS -- Required compiler definitions for HDF5 Fortran bindings +# HDF5_C_INCLUDE_DIRS -- Required include directories for HDF5 C bindings +# HDF5_CXX_INCLUDE_DIRS -- Required include directories for HDF5 C++ bindings +# HDF5_Fortran_INCLUDE_DIRS -- Required include directories for HDF5 Fortran bindings # HDF5_C_LIBRARIES - Required libraries for the HDF5 C bindings # HDF5_CXX_LIBRARIES - Required libraries for the HDF5 C++ bindings # HDF5_Fortran_LIBRARIES - Required libraries for the HDF5 Fortran bindings @@ -696,6 +699,8 @@ if( NOT HDF5_FOUND ) ${_HDF5_SEARCH_OPTS} ) mark_as_advanced(HDF5_${__lang}_INCLUDE_DIR) + # set the _DIRS variable as this is what the user will normally use + set(HDF5_${__lang}_INCLUDE_DIRS ${HDF5_${__lang}_INCLUDE_DIR}) list(APPEND HDF5_INCLUDE_DIRS ${HDF5_${__lang}_INCLUDE_DIR}) # find the HDF5 libraries |