commit | a6bb4975abab72b0cdc652d4fec0c9784462b7a6 | [log] [tgz] |
---|---|---|
author | Brad King <brad.king@kitware.com> | Wed Mar 22 11:47:55 2023 -0400 |
committer | Brad King <brad.king@kitware.com> | Wed Mar 22 11:50:18 2023 -0400 |
tree | dbe4acabc82b795555d8d2863c6c621ae32933f0 | |
parent | 15a86d45d11e70c1224cacd0c894d1365ebd2ae7 [diff] |
FindHDF5: Restore parallel HDF5 detection with only CXX enabled Since commit 14c46fb16a (FindHDF5: Find C component with only CXX compiler, 2022-12-13, v3.26.0-rc1~175^2), if CXX is enabled but C is not, the `_HDF5_test_regular_compiler_C` helper writes a `.cpp` source but the `_HDF5_invoke_compiler` still expects a `.c` source. Refactor the logic to select a name for the source file up front, and use it in both helpers. Fixes: #24627 Issue: #24241