Set CMake policy 0074 for version 3.12+

This commit is contained in:
Paul Romano 2018-09-12 23:38:16 -05:00
parent ce04299f30
commit 0454d8b9ad

View file

@ -40,6 +40,11 @@ endif()
# HDF5 for binary output
#===============================================================================
# Allow user to specify HDF5_ROOT
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
cmake_policy(SET CMP0074 NEW)
endif()
# Unfortunately FindHDF5.cmake will always prefer a serial HDF5 installation
# over a parallel installation if both appear on the user's PATH. To get around
# this, we check for the environment variable HDF5_ROOT and if it exists, use it