Skip to content

Commit

Permalink
#2323: Correctly export magistrate target when it's included as a vt'…
Browse files Browse the repository at this point in the history
…s subdirectory
  • Loading branch information
JacobDomagala committed Jul 11, 2024
1 parent ed79a65 commit ae8fe79
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 @@ -314,9 +314,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 ae8fe79

Please sign in to comment.