[CMake] Dead code
Closed this issue · 1 comments
christoph-conrads commented
In CMakeLists.txt
, lines 319-335, the else
branch will never be executed because HDF5 is marked as required.
if(ENABLE_HDF5) # line 319
find_package(HDF5 COMPONENTS HL C REQUIRED) # <-- package is REQUIRED
if(HDF5_FOUND)
# ...
else() # will never be entered
message(WARNING "
** HDF5 could not be found!
* You may specify:
* -DHDF5_ROOT as the path to the HDF5 installation to use.
**")
endif()
leobago commented
Fixed, thanks.