Skip to content

Commit

Permalink
Merge pull request #2324 from DARMA-tasking/2323-cmake-fails-to-confi…
Browse files Browse the repository at this point in the history
…gure-when-checkpoint-is-present-in-lib

#2323: Fix an issue with magistrate target when it's included as a vt's subdirectory
  • Loading branch information
lifflander authored Jul 18, 2024
2 parents 958e26c + 1b520b0 commit 218a219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cmake/load_local_packages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ include(cmake/local_package.cmake)

if (EXISTS "${PROJECT_LIB_DIR}/checkpoint")
add_subdirectory(${PROJECT_LIB_DIR}/checkpoint)
elseif(EXISTS "${PROJECT_LIB_DIR}/magistrate")
add_subdirectory(${PROJECT_LIB_DIR}/magistrate)
else()
# find these required packages locally
find_package_local(magistrate)
Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ export(
NAMESPACE vt::runtime::
)

if (EXISTS "${PROJECT_LIB_DIR}/checkpoint")
if (EXISTS "${PROJECT_LIB_DIR}/checkpoint" OR EXISTS "${PROJECT_LIB_DIR}/magistrate")
install(
TARGETS checkpoint
TARGETS magistrate
EXPORT ${VIRTUAL_TRANSPORT_LIBRARY}
)
endif()

0 comments on commit 218a219

Please sign in to comment.