diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2017-11-08 14:11:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-08 14:35:45 (GMT) |
commit | a6abb6c8b63434d1794a8fd6ae1d5f5fa2dc85f3 (patch) | |
tree | a4b7dedcc7c8ab421b3debd349a4766619ffaac2 /Modules/FindHDF5.cmake | |
parent | a91eb5e41f486628910f189bf40403568af013c7 (diff) | |
download | CMake-a6abb6c8b63434d1794a8fd6ae1d5f5fa2dc85f3.zip CMake-a6abb6c8b63434d1794a8fd6ae1d5f5fa2dc85f3.tar.gz CMake-a6abb6c8b63434d1794a8fd6ae1d5f5fa2dc85f3.tar.bz2 |
FindHDF5: Fix H5_VERSION on Patch in C
Fix a typo from commit v3.6.0-rc1~85^2 (HDF5: Refactor the use of
compiler wrappers, 2016-04-04) that accidentally used the HDF5 C++
version (which could be empty) while detecting the C patch version.
The detection failed for patch releases, such as `1.10.0-patch1`
becoming `.1` instead of `1.10.0.1`.
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r-- | Modules/FindHDF5.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index de20049..3279bf2 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -214,7 +214,7 @@ function(_HDF5_test_regular_compiler_C success version is_parallel) ) set(${version} ${CMAKE_MATCH_1}) if(CMAKE_MATCH_3) - set(${version} ${HDF5_CXX_VERSION}.${CMAKE_MATCH_3}) + set(${version} ${HDF5_C_VERSION}.${CMAKE_MATCH_3}) endif() set(${version} ${${version}} PARENT_SCOPE) |