diff --git a/cmake/modules/tde_uic.cmake b/cmake/modules/tde_uic.cmake index 78f7185..e0278c6 100644 --- a/cmake/modules/tde_uic.cmake +++ b/cmake/modules/tde_uic.cmake @@ -22,8 +22,13 @@ if( EXISTS "${UI_FILE}.h" ) execute_process( COMMAND tqt-replace ${local_ui_file}.h ) endif( ) +if( TDE_QTPLUGINS_DIR ) + set( L -L ${TDE_QTPLUGINS_DIR} ) +endif( ) + execute_process( COMMAND ${UIC_EXECUTABLE} -nounload -tr tr2i18n + ${L} ${local_ui_file} OUTPUT_VARIABLE _ui_h_content ) @@ -33,10 +38,6 @@ if( _ui_h_content ) file( WRITE ${_ui_basename}.h "${_ui_h_content}" ) endif( ) -if( TDE_QTPLUGINS_DIR ) - set( L -L ${TDE_QTPLUGINS_DIR} ) -endif( ) - execute_process( COMMAND ${UIC_EXECUTABLE} -nounload -tr tr2i18n ${L}