summaryrefslogtreecommitdiffstats
path: root/Modules/Qt4Macros.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-07-26 07:35:57 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-07-26 07:37:12 (GMT)
commit4f4d69fcc26ac1c528c70ef150ca6f3bb951d5e4 (patch)
tree5658149974e8293aa6ed2aa9ef9f44d4e40c84e4 /Modules/Qt4Macros.cmake
parenta413a408734c61d8dff400c25912ef43ccb1e657 (diff)
downloadCMake-4f4d69fcc26ac1c528c70ef150ca6f3bb951d5e4.zip
CMake-4f4d69fcc26ac1c528c70ef150ca6f3bb951d5e4.tar.gz
CMake-4f4d69fcc26ac1c528c70ef150ca6f3bb951d5e4.tar.bz2
Qt4Macros: Simplify some variable population.
Diffstat (limited to 'Modules/Qt4Macros.cmake')
-rw-r--r--Modules/Qt4Macros.cmake6
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/Qt4Macros.cmake b/Modules/Qt4Macros.cmake
index d71ef2a..f1aedd7 100644
--- a/Modules/Qt4Macros.cmake
+++ b/Modules/Qt4Macros.cmake
@@ -113,11 +113,9 @@ macro (QT4_CREATE_MOC_COMMAND infile outfile moc_flags moc_options moc_target)
set (_moc_parameters ${moc_flags} ${moc_options} -o "${outfile}" "${infile}")
string (REPLACE ";" "\n" _moc_parameters "${_moc_parameters}")
- set(targetincludes)
- set(targetdefines)
if(moc_target)
- list(APPEND targetincludes "$<TARGET_PROPERTY:${moc_target},INCLUDE_DIRECTORIES>")
- list(APPEND targetdefines "$<TARGET_PROPERTY:${moc_target},COMPILE_DEFINITIONS>")
+ set(targetincludes "$<TARGET_PROPERTY:${moc_target},INCLUDE_DIRECTORIES>")
+ set(targetdefines "$<TARGET_PROPERTY:${moc_target},COMPILE_DEFINITIONS>")
set(targetincludes "$<$<BOOL:${targetincludes}>:-I$<JOIN:${targetincludes},\n-I>\n>")
set(targetdefines "$<$<BOOL:${targetdefines}>:-D$<JOIN:${targetdefines},\n-D>\n>")