File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,9 +158,7 @@ foreach(lang_file ${LANG_CONFIG_FILES})
158158endforeach ()
159159string (APPEND CONFIG_QRC_CONTENT "</qresource>\n </RCC>\n " )
160160
161- file (GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR } /config.qrc
162- CONTENT ${CONFIG_QRC_CONTENT}
163- )
161+ file (WRITE ${CMAKE_CURRENT_BINARY_DIR } /config.qrc "${CONFIG_QRC_CONTENT} " )
164162
165163qt_add_resources (doxywizard_CONFIG_RESOURCES ${CMAKE_CURRENT_BINARY_DIR } /config.qrc )
166164
@@ -194,9 +192,7 @@ foreach(qm_file ${doxywizard_QM_FILES})
194192endforeach ()
195193string (APPEND TRANSLATIONS_QRC_CONTENT " </qresource>\n </RCC>\n " )
196194
197- file (GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR } /translations.qrc
198- CONTENT ${TRANSLATIONS_QRC_CONTENT}
199- )
195+ file (WRITE ${CMAKE_CURRENT_BINARY_DIR } /translations.qrc "${TRANSLATIONS_QRC_CONTENT} " )
200196
201197qt_add_resources (doxywizard_TRANSLATION_RESOURCES ${CMAKE_CURRENT_BINARY_DIR } /translations.qrc )
202198
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ void Expert::loadConfigXml()
118118 QFile langFile (configPath);
119119 if (!langFile.exists ())
120120 {
121+ printf (" Failed to open '%s', defaulting to English" ,qPrintable (configPath));
121122 configPath = SA (" :/config/config.xml" );
122123 }
123124 }
You can’t perform that action at this time.
0 commit comments