MantisBT - CMake
View Issue Details
0011518CMakeModulespublic2010-11-25 07:222011-04-04 12:00
Stephen Kelly 
Clinton Stimpson 
normalminorhave not tried
closedfixed 
 
 
0011518: Can't use absolute path for Qt DBus interface
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.
No tags attached.
Issue History
2010-11-25 07:22Stephen KellyNew Issue
2010-12-09 11:43Brad KingAssigned To => Clinton Stimpson
2010-12-09 11:43Brad KingStatusnew => assigned
2010-12-14 13:19Kovarththanan RajaratnamCategoryCMake => Modules
2010-12-23 13:44Clinton StimpsonNote Added: 0024325
2010-12-23 13:44Clinton StimpsonStatusassigned => resolved
2010-12-23 13:44Clinton StimpsonResolutionopen => fixed
2011-04-04 12:00David ColeNote Added: 0026077
2011-04-04 12:00David ColeStatusresolved => closed

Notes
(0024325)
Clinton Stimpson   
2010-12-23 13:44   
fixed in git
(0026077)
David Cole   
2011-04-04 12:00   
Closing resolved issues that have not been updated in more than 3 months.