summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-16 14:41:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-16 14:41:57 (GMT)
commit1f4976d959ec77e466456fc257c0591f8dff9a86 (patch)
tree9c02cb5ab31392e5a8c2ac3816669a75b207f344
parent319584711c498e05ebd7f221b448b0c6bf4ceaa3 (diff)
parent449f343498b4524a38c3a6fb6b2e9e1753144c5d (diff)
downloadCMake-1f4976d959ec77e466456fc257c0591f8dff9a86.zip
CMake-1f4976d959ec77e466456fc257c0591f8dff9a86.tar.gz
CMake-1f4976d959ec77e466456fc257c0591f8dff9a86.tar.bz2
Merge topic 'FindHDF5-info-binary-exists' into release-3.23
449f343498 FindHDF5: Tolerate failure during compiler interrogation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6983
-rw-r--r--Modules/FindHDF5.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 9123d56..40ed9a9 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -242,7 +242,7 @@ function(_HDF5_test_regular_compiler_C success version is_parallel)
COPY_FILE ${scratch_directory}/compiler_has_h5_c
)
endif()
- if(${success})
+ if(${success} AND EXISTS ${scratch_directory}/compiler_has_h5_c)
file(STRINGS ${scratch_directory}/compiler_has_h5_c INFO_STRINGS
REGEX "^INFO:"
)
@@ -290,7 +290,7 @@ function(_HDF5_test_regular_compiler_CXX success version is_parallel)
COPY_FILE ${scratch_directory}/compiler_has_h5_cxx
)
endif()
- if(${success})
+ if(${success} AND EXISTS ${scratch_directory}/compiler_has_h5_cxx)
file(STRINGS ${scratch_directory}/compiler_has_h5_cxx INFO_STRINGS
REGEX "^INFO:"
)