| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0000110 | CMake | public | 2003-07-29 11:21 | 2003-08-02 10:20 | |||||
| Reporter | David Thompson | ||||||||
| Assigned To | System Admin | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0000110: QT_WRAP_UI problem on out-of-source builds | ||||||||
| Description | I have a QT ui file, blah.ui, that I've created using CONFIGURE_FILE so that some example text gets set to the CMAKE_INSTALL_PREFIX path. Because the file is generated and placed in my out-of-source build project_BINARY_DIR, the Makefile complains that there is no rule to make ${project_SOURCE_DIR}/blah.ui. If I try to specify the full path, ${project_BINARY_DIR}/blah.ui, to QT_WRAP_UI the Makefile looks for ${project_SOURCE_DIR}/${project_BINARY_DIR}/blah.ui Here's a patch to fix the problem Index: Source/cmQTWrapUICommand.cxx =================================================================== RCS file: /cvsroot/CMake/CMake/Source/cmQTWrapUICommand.cxx,v retrieving revision 1.12 diff -r1.12 cmQTWrapUICommand.cxx 84c84,99 < std::string origname = cdir + "/" + *j; --- > std::string origname; > if ( (*j)[0] == '/' ) > { > origname = *j; > } > else > { > if ( curr->GetPropertyAsBool("GENERATED") ) > { > origname = std::string( m_Makefile->GetCurrentOutputDirectory() ) + "/" + *j; > } > else > { > origname = cdir + "/" + *j; > } > } | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0000040) System Admin (reporter) 2003-07-30 13:29 |
Ok, this is fixed. I also added test that reproduce this. Now we need a test for the GENERATED part. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |