Fix library SOVERSION
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5274442..1727a95 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,8 +58,9 @@
 if ((NN_VERSION_CURRENT STREQUAL "") OR (NN_VERSION_REVISION STREQUAL "") OR (NN_VERSION_AGE STREQUAL ""))
     message (FATAL_ERROR "Could not read ABI version from nn.h")
 else ()
-    set (NN_ABI_VERSION "${NN_VERSION_CURRENT}.${NN_VERSION_REVISION}.${NN_VERSION_AGE}")
-    message (STATUS "Detected nanomsg ABI v${NN_ABI_VERSION}")
+    set (NN_ABI_VERSION "${NN_VERSION_CURRENT}")
+    set (NN_LIB_VERSION "${NN_VERSION_CURRENT}.${NN_VERSION_REVISION}.${NN_VERSION_AGE}")
+    message (STATUS "Detected nanomsg ABI v${NN_ABI_VERSION} (v${NN_LIB_VERSION})")
 endif ()
 
 # Determine package version.
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3083f82..4f09948 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -341,7 +341,9 @@
     add_library (${PROJECT_NAME} SHARED ${NN_SOURCES})
     add_definitions (-DNN_SHARED_LIB)
     set_target_properties (${PROJECT_NAME} PROPERTIES
-        SOVERSION "${NN_ABI_VERSION}")
+        SOVERSION "${NN_ABI_VERSION}"
+		VERSION "${NN_LIB_VERSION}"
+	)
 endif ()
 
 # Set library outputs same as top-level project binary outputs