Skip to content

Commit

Permalink
Remove the LCI::Shared cmake target
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Oct 1, 2024
1 parent a0dfa7d commit be92b52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LCIConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be92b52

Please sign in to comment.