Making sure libmesh is found in the OpenMC config if we build with it.

This commit is contained in:
Patrick Shriwise 2020-04-07 18:11:57 -05:00
parent dce646af8b
commit d2dd262846

View file

@ -9,6 +9,12 @@ if(@DAGMC_FOUND@)
find_package(DAGMC REQUIRED HINTS @DAGMC_DIR@)
endif()
if(@LIBMESH_FOUND@)
include(FindPkgConfig)
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:@LIBMESH_PC@")
pkg_check_modules(LIBMESH REQUIRED libmesh IMPORTED_TARGET)
endif()
if(NOT TARGET OpenMC::libopenmc)
include("${OpenMC_CMAKE_DIR}/OpenMCTargets.cmake")
endif()