summaryrefslogtreecommitdiffstats
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorPaul Romano <paul.k.romano@gmail.com>2015-09-01 02:18:51 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-01 14:56:40 (GMT)
commit19e7db07e36b03e7d57b80c8f9732347116d8c5d (patch)
tree3646c41ab613443009dba6b5ebda1ecd3e1b57db /Modules/FindHDF5.cmake
parent7b33d4efe18f0e63ab9ecb7f3420265b9ca48cb8 (diff)
downloadCMake-19e7db07e36b03e7d57b80c8f9732347116d8c5d.zip
CMake-19e7db07e36b03e7d57b80c8f9732347116d8c5d.tar.gz
CMake-19e7db07e36b03e7d57b80c8f9732347116d8c5d.tar.bz2
FindHDF5: Fix support for HL and Fortran_HL components
Define HDF5_{Fortran_,}HL_COMPILE_LINE so that HDF5_{Fortran_,}HL_INCLUDE_DIR and HDF5_{Fortran_,}HL_LIBRARIES are found when the macro is invoked for HL and Fortran_HL components. (Use patch from debian cmake-data package.)
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r--Modules/FindHDF5.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 3bd6f1e..47d85f7 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -225,6 +225,8 @@ if( NOT HDF5_FOUND )
_HDF5_invoke_compiler( C HDF5_C_COMPILE_LINE HDF5_C_RETURN_VALUE )
_HDF5_invoke_compiler( CXX HDF5_CXX_COMPILE_LINE HDF5_CXX_RETURN_VALUE )
_HDF5_invoke_compiler( Fortran HDF5_Fortran_COMPILE_LINE HDF5_Fortran_RETURN_VALUE )
+ set(HDF5_HL_COMPILE_LINE ${HDF5_C_COMPILE_LINE})
+ set(HDF5_Fortran_HL_COMPILE_LINE ${HDF5_Fortran_COMPILE_LINE})
# seed the initial lists of libraries to find with items we know we need
set( HDF5_C_LIBRARY_NAMES_INIT hdf5 )