diff --git a/plugins/operators/CMakeLists.txt b/plugins/operators/CMakeLists.txt index abea93e0dc..b120e232e6 100644 --- a/plugins/operators/CMakeLists.txt +++ b/plugins/operators/CMakeLists.txt @@ -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