Compile fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21065 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2007-10-19 15:16:40 +00:00
parent 0077782724
commit 026013e1eb
2 changed files with 3 additions and 2 deletions

View File

@ -787,7 +787,7 @@ if(QT4_QMAKE_FOUND)
set(outfile ${CMAKE_CURRENT_BINARY_DIR}/qrc_${outfilename}.cxx)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${QT_RCC_EXECUTABLE}
ARGS -name ${outfilename} -o ${outfile} ${infile}
ARGS -o ${outfile} ${infile}
MAIN_DEPENDENCY ${infile} )
set(${outfiles} ${${outfiles}} ${outfile})
ENDFOREACH (it)

View File

@ -45,9 +45,10 @@
static void initializeResources()
{
extern void qInitResources();
static bool initialized = false;
if (!initialized) {
Q_INIT_RESOURCE(Resources);
qInitResources();
initialized = true;
}
}