summaryrefslogtreecommitdiffstats
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorKris Thielemans <kris.f.thielemans@hotmail.com>2017-02-16 23:35:46 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-01 13:13:58 (GMT)
commit2186b323c0bc43b7eecec0f906cff9fe2e57fc0f (patch)
tree0f0871bfd70128738d9e6d41c8efd8b1fc461074 /Modules/FindHDF5.cmake
parent16f1dd0d16365448f9d483a5d00aba356eb2906b (diff)
downloadCMake-2186b323c0bc43b7eecec0f906cff9fe2e57fc0f.zip
CMake-2186b323c0bc43b7eecec0f906cff9fe2e57fc0f.tar.gz
CMake-2186b323c0bc43b7eecec0f906cff9fe2e57fc0f.tar.bz2
FindHDF5: initialize HDF5_DEFINITIONS when using hdf5-config.cmake
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r--Modules/FindHDF5.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 96d4960..927ec64 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -418,6 +418,7 @@ if(NOT HDF5_FOUND)
set(HDF5_CXX_HL_TARGET ${_target_prefix}hdf5_hl_cpp)
set(HDF5_Fortran_TARGET ${_target_prefix}hdf5_fortran)
set(HDF5_Fortran_HL_TARGET ${_target_prefix}hdf5_hl_fortran)
+ set(HDF5_DEFINITIONS "")
if(HDF5_USE_STATIC_LIBRARIES)
set(_suffix "-static")
else()