mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
FindHDF5: set HDF5_<lang>_INCLUDE_DIRS in all cases
In the case that we're using `find_path` to find the include directory, only the `_DIR` variable was set, while in all other cases only the `_DIRS` variable was set. Set the `_DIRS` variable in all cases (while keeping `_DIR` as result of `find_path`). Also document the `_DIRS` variable. Fixes: #16694
This commit is contained in:
committed by
Brad King
parent
add3b1ee4f
commit
c6bef559f3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user