diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-08-26 15:50:15 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-08-26 15:50:15 (GMT) |
commit | 263a4229e545f1e4882dfad5acaf65de8cf093e9 (patch) | |
tree | fd58cab3b7660ec1e73efe2c05a466fa3fbade6b /Modules | |
parent | 607e4eb4b4301e98ae4a9afa095d52f2edb3ab81 (diff) | |
download | CMake-263a4229e545f1e4882dfad5acaf65de8cf093e9.zip CMake-263a4229e545f1e4882dfad5acaf65de8cf093e9.tar.gz CMake-263a4229e545f1e4882dfad5acaf65de8cf093e9.tar.bz2 |
ENH: Use COMPILE_DEFINTIONS instead of DEFINITIONS.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindQt4.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index c3e4b25..35fa01f 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -1042,12 +1042,14 @@ IF (QT4_QMAKE_FOUND) GET_DIRECTORY_PROPERTY(_inc_DIRS INCLUDE_DIRECTORIES) FOREACH(_current ${_inc_DIRS}) - SET(${_moc_flags} ${${_moc_flags}} "-I" ${_current}) + SET(${_moc_flags} ${${_moc_flags}} "-I${_current}") ENDFOREACH(_current ${_inc_DIRS}) - GET_DIRECTORY_PROPERTY(_defines DEFINITIONS) - SEPARATE_ARGUMENTS(_defines) - SET(${_moc_flags} ${${_moc_flags}} ${_defines}) + GET_DIRECTORY_PROPERTY(_defines COMPILE_DEFINITIONS) + FOREACH(_current ${_defines}) + SET(${_moc_flags} ${${_moc_flags}} "-D${_current}") + ENDFOREACH(_current ${_defines}) + IF(Q_WS_WIN) SET(${_moc_flags} ${${_moc_flags}} -DWIN32) ENDIF(Q_WS_WIN) |