Revert "Include relative path in generated qrc and uic files. Fixes #10413."

This reverts commit 108090fde9.
This commit is contained in:
Clinton Stimpson 2010-04-08 16:39:15 -06:00
parent e93b737dd5
commit c94303fcac
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ MACRO (QT4_WRAP_UI outfiles )
FOREACH (it ${ui_files}) FOREACH (it ${ui_files})
GET_FILENAME_COMPONENT(outfile ${it} NAME_WE) GET_FILENAME_COMPONENT(outfile ${it} NAME_WE)
GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE) GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
QT4_MAKE_OUTPUT_FILE(${infile} ui_ h outfile) SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile} ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${QT_UIC_EXECUTABLE} COMMAND ${QT_UIC_EXECUTABLE}
ARGS ${ui_options} -o ${outfile} ${infile} ARGS ${ui_options} -o ${outfile} ${infile}
@ -179,7 +179,7 @@ MACRO (QT4_ADD_RESOURCES outfiles )
GET_FILENAME_COMPONENT(outfilename ${it} NAME_WE) GET_FILENAME_COMPONENT(outfilename ${it} NAME_WE)
GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE) GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
GET_FILENAME_COMPONENT(rc_path ${infile} PATH) GET_FILENAME_COMPONENT(rc_path ${infile} PATH)
QT4_MAKE_OUTPUT_FILE(${infile} qrc_ cxx outfile) SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/qrc_${outfilename}.cxx)
# parse file for dependencies # parse file for dependencies
# all files are absolute paths or relative to the location of the qrc file # all files are absolute paths or relative to the location of the qrc file
FILE(READ "${infile}" _RC_FILE_CONTENTS) FILE(READ "${infile}" _RC_FILE_CONTENTS)