Adding CMake version check for libMesh builds.

This commit is contained in:
Patrick Shriwise 2021-02-10 13:47:27 -06:00
parent 3e787e682a
commit f013f4d877

View file

@ -1,6 +1,10 @@
# Finds the libMesh installation using CMake's PkgConfig
# module and creates a libmesh imported target
if (${CMAKE_VERSION} VERSION_LESS 3.12.0)
message((FATAL_ERROR "OpenMC builds with libMesh support require CMake version 3.12.0 or greater."))
endif()
include(FindPkgConfig)
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${LIBMESH_PC}")
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH True)