Skip to content

Commit

Permalink
encryptionoperator: add adios2 prefix and soname
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Jan 9, 2025
1 parent f2d335d commit 670c8dc
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions plugins/operators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@
#------------------------------------------------------------------------------#

if(ADIOS2_HAVE_Sodium)
add_library(EncryptionOperator MODULE
EncryptionOperator.cpp
add_library(adios2_encryption_operator MODULE
adios2_encryption_operator.cpp
)
target_link_libraries(EncryptionOperator adios2_core sodium)
target_link_libraries(adios2_encryption_operator adios2_core sodium)
if (NOT CMAKE_SKIP_INSTALL_RPATH)
set_target_properties(EncryptionOperator PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
set_target_properties(adios2_encryption_operator PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
endif()
install(TARGETS EncryptionOperator EXPORT adios2Exports

set_target_properties(
adios2_encryption_operator
PROPERTIES
VERSION ${ADIOS2_LIBRARY_VERSION}
SOVERSION ${ADIOS2_LIBRARY_SOVERSION}
)
install(TARGETS adios2_encryption_operator EXPORT adios2Exports
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT adios2_core-runtime
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT adios2_core-libraries NAMELINK_COMPONENT adios2_core-development
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT adios2_core-development
Expand Down

0 comments on commit 670c8dc

Please sign in to comment.