diff options
author | Brad King <brad.king@kitware.com> | 2010-12-28 20:26:37 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-12-28 20:26:37 (GMT) |
commit | 93460cc1d5f2859917a77ecf8279816cf964342b (patch) | |
tree | 078bf9ee782905bd3770fc3617ca6ef539629176 | |
parent | 96d0203bc0a497695aa204e69b6d7e0bebcb1df3 (diff) | |
parent | d640d549d5f7648328f72180966b2a0cd604e29a (diff) | |
download | CMake-93460cc1d5f2859917a77ecf8279816cf964342b.zip CMake-93460cc1d5f2859917a77ecf8279816cf964342b.tar.gz CMake-93460cc1d5f2859917a77ecf8279816cf964342b.tar.bz2 |
Merge topic 'bug-11518-dbus-macro'
d640d54 allow absolute paths for dbus interface.
-rw-r--r-- | Modules/Qt4Macros.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Modules/Qt4Macros.cmake b/Modules/Qt4Macros.cmake index 6a609a0..86a7404 100644 --- a/Modules/Qt4Macros.cmake +++ b/Modules/Qt4Macros.cmake @@ -254,7 +254,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) |