From 8c56132862c54619d3d7a8b641abccf27b5590d4 Mon Sep 17 00:00:00 2001 From: Jacob Domagala Date: Thu, 11 Jul 2024 14:22:30 +0200 Subject: [PATCH] #2323: Correctly export magistrate target when it's included as a vt's subdirectory --- cmake/load_local_packages.cmake | 2 ++ src/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/load_local_packages.cmake b/cmake/load_local_packages.cmake index 2227da012b..6bc92937b5 100644 --- a/cmake/load_local_packages.cmake +++ b/cmake/load_local_packages.cmake @@ -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) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 250f6ec119..380c8d4a4b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()