mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 19:14:06 +02:00
Handle relative CMAKE_INSTALL_LIBDIR during plugin loading
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user