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 26fafd319e
commit abda65d038

View file

@ -15,6 +15,12 @@ if(@LIBMESH_FOUND@)
pkg_check_modules(LIBMESH REQUIRED libmesh IMPORTED_TARGET)
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()