mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 03:41:27 +02:00
Handle relative CMAKE_INSTALL_LIBDIR during plugin loading
This commit is contained in:
@@ -119,6 +119,13 @@ PluginLoader::pluginDirs()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
QDir installLibDir( CMAKE_INSTALL_LIBDIR );
|
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 );
|
QDir libDir( appDir );
|
||||||
libDir.cdUp();
|
libDir.cdUp();
|
||||||
|
Reference in New Issue
Block a user