mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Making sure libmesh is found in the OpenMC config if we build with it.
This commit is contained in:
parent
26fafd319e
commit
abda65d038
1 changed files with 6 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue