From 889fd74fdd673fa549c108e4704f55b2d4571bbc Mon Sep 17 00:00:00 2001 From: Michael Banck Date: Sun, 9 Jan 2022 11:49:43 +0100 Subject: [PATCH] Add SONAME/SOVERSION to generated library (#229) --- export/cmake/CMakeLists.txt.export | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export/cmake/CMakeLists.txt.export b/export/cmake/CMakeLists.txt.export index 9f2132bc2..bbf287a55 100644 --- a/export/cmake/CMakeLists.txt.export +++ b/export/cmake/CMakeLists.txt.export @@ -194,7 +194,7 @@ endif() # shared and static libraries built from the same object files if (LIBINT2_BUILD_SHARED_AND_STATIC_LIBS) add_library(libint2 SHARED $) - set_target_properties(libint2 PROPERTIES LIBRARY_OUTPUT_NAME int2) + set_target_properties(libint2 PROPERTIES LIBRARY_OUTPUT_NAME int2 VERSION 2.0.4 SOVERSION 2) add_library(libint2-static STATIC $) set_target_properties(libint2-static PROPERTIES ARCHIVE_OUTPUT_NAME int2) target_include_directories(libint2-static INTERFACE