From be92b52930657d784f94e62dfa5452aad039fdd5 Mon Sep 17 00:00:00 2001 From: Jiakun Yan Date: Mon, 30 Sep 2024 20:55:40 -0500 Subject: [PATCH] Remove the LCI::Shared cmake target --- LCIConfig.cmake.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/LCIConfig.cmake.in b/LCIConfig.cmake.in index c0debecb..d831ed8a 100644 --- a/LCIConfig.cmake.in +++ b/LCIConfig.cmake.in @@ -29,14 +29,14 @@ if (NOT TARGET LCI::LCT) set_and_check(LCI_SHARED_LIBRARY "@PACKAGE_CMAKE_INSTALL_LIBDIR@/@CMAKE_SHARED_LIBRARY_PREFIX@lci@CMAKE_SHARED_LIBRARY_SUFFIX@") # set_and_check(LCI_STATIC_LIBRARY "@PACKAGE_CMAKE_INSTALL_LIBDIR@/@CMAKE_STATIC_LIBRARY_PREFIX@lci@CMAKE_STATIC_LIBRARY_SUFFIX@") - add_library(LCI::Shared SHARED IMPORTED) - set_target_properties(LCI::Shared PROPERTIES + add_library(LCI::LCI SHARED IMPORTED) + set_target_properties(LCI::LCI PROPERTIES IMPORTED_LOCATION ${LCI_SHARED_LIBRARY} ) - target_include_directories(LCI::Shared INTERFACE ${LCI_INCLUDE_DIRS}) - target_link_libraries(LCI::Shared INTERFACE Threads::Threads @FABRIC@::@FABRIC@ LCI::LCT) + target_include_directories(LCI::LCI INTERFACE ${LCI_INCLUDE_DIRS}) + target_link_libraries(LCI::LCI INTERFACE Threads::Threads @FABRIC@::@FABRIC@ LCI::LCT) - add_library(LCI::LCI ALIAS LCI::Shared) + # add_library(LCI::LCI ALIAS LCI::Shared) # add_library(LCI::Static STATIC IMPORTED) # set_target_properties(LCI::Static PROPERTIES