diff options
author | Brad King <brad.king@kitware.com> | 2023-03-22 15:47:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-22 15:50:18 (GMT) |
commit | a6bb4975abab72b0cdc652d4fec0c9784462b7a6 (patch) | |
tree | dbe4acabc82b795555d8d2863c6c621ae32933f0 /Modules/FindPNG.cmake | |
parent | 15a86d45d11e70c1224cacd0c894d1365ebd2ae7 (diff) | |
download | CMake-a6bb4975abab72b0cdc652d4fec0c9784462b7a6.zip CMake-a6bb4975abab72b0cdc652d4fec0c9784462b7a6.tar.gz CMake-a6bb4975abab72b0cdc652d4fec0c9784462b7a6.tar.bz2 |
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
Diffstat (limited to 'Modules/FindPNG.cmake')
0 files changed, 0 insertions, 0 deletions