Set the IMPORTED_SONAME for imported targets.
authorStephen Kelly <stephen.kelly@kdab.com>
Wed, 4 Jul 2012 08:11:07 +0000 (10:11 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jul 2012 00:47:14 +0000 (02:47 +0200)
On windows this doesn't need to be set. On Mac I'm not sure yet on
the various configurations.

Change-Id: I31f191711a2ae0a1bb7221ae6e1fef377d62f1dc
Reviewed-by: Clinton Stimpson <clinton@elemtech.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
mkspecs/cmake/Qt5BasicConfig.cmake.in
mkspecs/features/create_cmake.prf

index 9124979..4014c9d 100644 (file)
@@ -122,6 +122,9 @@ macro(_populate_imported_target_properties Configuration LIB_LOCATION IMPLIB_LOC
 !!ELSE
         \"IMPORTED_LOCATION_${Configuration}\" \"$${CMAKE_LIB_DIR}$${LIB_LOCATION}\"
 !!ENDIF
+!!IF !isEmpty(CMAKE_LIB_SONAME)
+        \"IMPORTED_SONAME_${Configuration}\" "$${CMAKE_LIB_SONAME}"
+!!ENDIF
     )
     if(IMPLIB_LOCATION)
         set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
index e351422..13bbd10 100644 (file)
@@ -111,6 +111,7 @@ macx {
     } else {
         CMAKE_LIB_FILE_LOCATION_DEBUG = libQt$${CMAKE_MODULE_NAME}$${QT_LIBINFIX}.so.$$eval(QT.$${MODULE}.VERSION)
         CMAKE_LIB_FILE_LOCATION_RELEASE = libQt$${CMAKE_MODULE_NAME}$${QT_LIBINFIX}.so.$$eval(QT.$${MODULE}.VERSION)
+        CMAKE_LIB_SONAME = libQt$${CMAKE_MODULE_NAME}$${QT_LIBINFIX}.so.$$eval(QT.$${MODULE}.MAJOR_VERSION)
     }
 }