View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010431CMakeModulespublic2010-03-17 17:582016-06-10 14:31
Reporterdam 
Assigned ToClinton Stimpson 
PrioritynormalSeveritytrivialReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010431: QT4_ADD_RESOURCES build file in ${CMAKE_CURRENT_BINARY_DIR}
DescriptionQt resources files are not build in the correct build directory.
For example if I have a foo project which contains:
- build/
- CMakeLists.txt
- src/
- src/foo/
- src/foo/resources.qrc

the file qrc_resources.cxx will be built in build/ and not in build/src/foo/.
Additional InformationI think the same problem occurs for ui files.

    GET_FILENAME_COMPONENT(outfile ${it} NAME_WE)
    GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
  - SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h)
  + QT4_MAKE_OUTPUT_FILE(${infile} ui_ h outfile)
    ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
TagsNo tags attached.
Attached Filespatch file icon qt4_add_resources.patch [^] (654 bytes) 2010-03-17 17:58 [Show Content]

 Relationships

  Notes
(0019948)
Clinton Stimpson (developer)
2010-03-17 18:35

Fixed.
(0020105)
Clinton Stimpson (developer)
2010-04-08 18:40

Need to reopen to rework the patch. It breaks some projects.
(0020269)
dam (reporter)
2010-04-20 02:39

Can you give me some examples so that I can update the patch ?
(0020273)
Clinton Stimpson (developer)
2010-04-20 10:28

The problem is that some projects broke because of missing include_directories() for the new location the files went into.

I'm thinking maybe we could add an option to control where these generated files go, but leave the default behavior as it has been for a long time.
(0020274)
Clinton Stimpson (developer)
2010-04-20 10:36

I was thinking of maybe this signature:
QT4_ADD_RESOURCES(outfile inputfile ... OPTIONS ... OUTPUT_DIRECTORY dir)
(0041670)
Kitware Robot (administrator)
2016-06-10 14:27

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2010-03-17 17:58 dam New Issue
2010-03-17 17:58 dam File Added: qt4_add_resources.patch
2010-03-17 18:34 Clinton Stimpson Status new => assigned
2010-03-17 18:34 Clinton Stimpson Assigned To => Clinton Stimpson
2010-03-17 18:35 Clinton Stimpson Note Added: 0019948
2010-03-17 18:35 Clinton Stimpson Status assigned => closed
2010-03-17 18:35 Clinton Stimpson Resolution open => fixed
2010-04-08 18:40 Clinton Stimpson Note Added: 0020105
2010-04-08 18:40 Clinton Stimpson Status closed => feedback
2010-04-08 18:40 Clinton Stimpson Resolution fixed => reopened
2010-04-08 18:41 Clinton Stimpson Status feedback => acknowledged
2010-04-20 02:39 dam Note Added: 0020269
2010-04-20 10:28 Clinton Stimpson Note Added: 0020273
2010-04-20 10:36 Clinton Stimpson Note Added: 0020274
2012-08-13 23:25 Clinton Stimpson Status acknowledged => backlog
2016-06-10 14:27 Kitware Robot Note Added: 0041670
2016-06-10 14:27 Kitware Robot Status backlog => resolved
2016-06-10 14:27 Kitware Robot Resolution reopened => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team