Skip to content

Commit

Permalink
Ensuring that all necessary information makes it into the OpeMCconfig…
Browse files Browse the repository at this point in the history
… file for linked applicatoins.
  • Loading branch information
pshriwise committed Apr 8, 2021
1 parent 0b61d14 commit 18a1ba1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmake/Modules/FindLIBMESH.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ include(FindPkgConfig)
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${LIBMESH_PC}")
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH True)
pkg_check_modules(LIBMESH REQUIRED ${LIBMESH_PC_FILE}>=1.6.0 IMPORTED_TARGET)
pkg_get_variable(LIBMESH_PREFIX ${LIBMESH_PC_FILE} prefix)
5 changes: 3 additions & 2 deletions cmake/OpenMCConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ 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)
list(APPEND CMAKE_PREFIX_PATH @LIBMESH_PREFIX@)
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH True)
pkg_check_modules(LIBMESH REQUIRED @LIBMESH_PC_FILE@>=1.6.0 IMPORTED_TARGET)
endif()

if(NOT TARGET OpenMC::libopenmc)
Expand Down

0 comments on commit 18a1ba1

Please sign in to comment.