summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-01-14 16:03:47 +0100
committerEike Ziller <eike.ziller@qt.io>2020-01-14 15:39:10 +0000
commitc22a840b106889e16d8f1b6ab73c9d6cc7ea4e45 (patch)
tree0f67c0742107391e1d67dbc55ebe7c31fa80d438
parent7d096c4828dd1b629c73ae37dea02cb3c45be086 (diff)
downloadqt-creator-c22a840b106889e16d8f1b6ab73c9d6cc7ea4e45.tar.gz
CMake build: Fix version number in library file names
Make it compatible with the qmake build, with just the major version. Change-Id: I3134b21b4775e7e83d135652dd66a51f3bdf91ab Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r--cmake/QtCreatorAPI.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake
index d4268085a7..03df34bd44 100644
--- a/cmake/QtCreatorAPI.cmake
+++ b/cmake/QtCreatorAPI.cmake
@@ -466,6 +466,7 @@ function(add_qtc_library name)
set_target_properties(${name} PROPERTIES
SOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}"
VERSION "${IDE_VERSION}"
+ SOVERSION "${PROJECT_VERSION_MAJOR}"
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN ON
BUILD_RPATH "${_LIB_RPATH}"