MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0011518 | CMake | Modules | public | 2010-11-25 07:22 | 2011-04-04 12:00 |
| Reporter | Stephen Kelly | ||||
| Assigned To | Clinton Stimpson | ||||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0011518: Can't use absolute path for Qt DBus interface | ||||
| Description | I've just hacked my FindQt like this: @@ -261,7 +261,15 @@ MACRO(QT4_GENERATE_DBUS_INTERFACE _header) # _customName OPTIONS -some -options GET_FILENAME_COMPONENT(_basename ${_header} NAME_WE) IF (_customName) - SET(_target ${CMAKE_CURRENT_BINARY_DIR}/${_customName}) + if (IS_ABSOLUTE ${_customName}) + get_filename_component(_containingDir ${_customName} PATH) + if (NOT EXISTS ${_containingDir}) + file(MAKE_DIRECTORY "${_containingDir}") + endif() + SET(_target ${_customName}) + else() + SET(_target ${CMAKE_CURRENT_BINARY_DIR}/${_customName}) + endif() ELSE (_customName) SET(_target ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.xml) ENDIF (_customName) Something similar should probably go into CMake. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-11-25 07:22 | Stephen Kelly | New Issue | |||
| 2010-12-09 11:43 | Brad King | Assigned To | => Clinton Stimpson | ||
| 2010-12-09 11:43 | Brad King | Status | new => assigned | ||
| 2010-12-14 13:19 | Kovarththanan Rajaratnam | Category | CMake => Modules | ||
| 2010-12-23 13:44 | Clinton Stimpson | Note Added: 0024325 | |||
| 2010-12-23 13:44 | Clinton Stimpson | Status | assigned => resolved | ||
| 2010-12-23 13:44 | Clinton Stimpson | Resolution | open => fixed | ||
| 2011-04-04 12:00 | David Cole | Note Added: 0026077 | |||
| 2011-04-04 12:00 | David Cole | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||