@ -382,12 +382,22 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS)
query_qmake_variable ( QT_INSTALL_PLUGINS )
endif ( )
if ( QT_INSTALL_PLUGINS )
set ( LIBRARY_DESTINATION ${ QT_INSTALL_PLUGINS } )
else ( )
string ( FIND "${QT_INSTALL_PLUGINS}" "${CMAKE_INSTALL_PREFIX}"
C M A K E _ I N S T A L L _ P R E F I X _ I N D E X _ I N _ Q T _ I N S T A L L _ P L U G I N S )
if ( "${CMAKE_INSTALL_PREFIX_INDEX_IN_QT_INSTALL_PLUGINS}" EQUAL 0 )
set ( LIBRARY_DESTINATION ${ QT_INSTALL_PLUGINS } )
else ( )
message (
W A R N I N G
" A c c o r d i n g t o q m a k e t h e Q t p l u g i n d i r e c t o r y i s \ " $ { Q T _ I N S T A L L _ P L U G I N S } \ " . H o w e v e r , t h a t p a t h i s n o t w i t h i n t h e i n s t a l l p r e f i x \ " $ { C M A K E _ I N S T A L L _ P R E F I X } \ " a n d t h e r e f o r e i g n o r e d . "
)
endif ( )
endif ( )
if ( NOT LIBRARY_DESTINATION )
set ( LIBRARY_DESTINATION lib ${ SELECTED_LIB_SUFFIX } /qt/plugins )
message (
W A R N I N G
" U n a b l e t o d e t e c t a p p r o p r i a t e i n s t a l l d i r e c t o r y f o r Q t plugins ( assuming \"${LIBRARY_DESTINATION}\")."
" U n a b l e t o d e t e c t a p p r o p r i a t e i n s t a l l d i r e c t o r y f o r Q t plugins ( assuming \"${LIBRARY_DESTINATION}\"). Set QT_PLUGIN_DIR to specify the directory to install Qt plugins to manually. "
)
endif ( )
endif ( )