Skip to content

Commit

Permalink
Merge pull request #1270 from LLNL/bugfix/white238/guard_install
Browse files Browse the repository at this point in the history
Guard install
  • Loading branch information
white238 committed Feb 6, 2024
2 parents b98abba + b0a944c commit 9a73e4d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/cmake/thirdparty/SetupAxomThirdParty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,16 @@ if (TARGET mfem)
# Note - white238: I can't seem to get this to pass install testing due to mfem being included
# in multiple export sets
message(STATUS "MFEM support is ON, using existing mfem target")

# Add it to this export set but don't prefix it with axom::
install(TARGETS mfem
EXPORT axom-targets
DESTINATION lib)
# NOTE: imported targets cannot be part of an export set
get_target_property(_is_imported mfem IMPORTED)
if(NOT "${_is_imported}")
install(TARGETS mfem
EXPORT axom-targets
DESTINATION lib)
endif()

set(MFEM_FOUND TRUE CACHE BOOL "" FORCE)
elseif (MFEM_DIR)
include(cmake/thirdparty/FindMFEM.cmake)
Expand Down

0 comments on commit 9a73e4d

Please sign in to comment.