View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011518CMakeModulespublic2010-11-25 07:222011-04-04 12:00
ReporterStephen Kelly 
Assigned ToClinton Stimpson 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0011518: Can't use absolute path for Qt DBus interface
DescriptionI'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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0024325)
Clinton Stimpson (developer)
2010-12-23 13:44

fixed in git
(0026077)
David Cole (manager)
2011-04-04 12:00

Closing resolved issues that have not been updated in more than 3 months.

 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


Copyright © 2000 - 2018 MantisBT Team