mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Adding CMake version check for libMesh builds.
This commit is contained in:
parent
3e787e682a
commit
f013f4d877
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue