1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 19:37:09 +02:00

Handle relative CMAKE_INSTALL_LIBDIR during plugin loading

This commit is contained in:
Uwe L. Korn
2014-10-14 09:45:26 +02:00
parent 870ca5a366
commit 62115ccccc

View File

@@ -119,6 +119,13 @@ PluginLoader::pluginDirs()
#endif
QDir installLibDir( CMAKE_INSTALL_LIBDIR );
// In the case where CMAKE_INSTALL_LIBDIR is given relatively, we must
// add the install prefix to it.
if ( installLibDir.isRelative() )
{
installLibDir = QDir( CMAKE_INSTALL_PREFIX );
installLibDir.cd( CMAKE_INSTALL_LIBDIR );
}
QDir libDir( appDir );
libDir.cdUp();