summaryrefslogtreecommitdiff
path: root/Modules/Qt4Macros.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-12 18:22:17 +0100
committerStephen Kelly <steveire@gmail.com>2013-12-12 18:22:17 +0100
commit3e97bcb1ef18c7b1e16f81733896764bfd8178aa (patch)
tree5b0afdd4ed7dce5271914b145b6efc610a2a98d5 /Modules/Qt4Macros.cmake
parentb9f0d81c4b605af7667a1f384fc20c17a577f5a8 (diff)
downloadcmake-3e97bcb1ef18c7b1e16f81733896764bfd8178aa.tar.gz
Use a config-specific moc parameters file, if needed.
Diffstat (limited to 'Modules/Qt4Macros.cmake')
-rw-r--r--Modules/Qt4Macros.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Qt4Macros.cmake b/Modules/Qt4Macros.cmake
index b5f005f261..fd9819f811 100644
--- a/Modules/Qt4Macros.cmake
+++ b/Modules/Qt4Macros.cmake
@@ -120,6 +120,7 @@ macro (QT4_CREATE_MOC_COMMAND infile outfile moc_flags moc_options moc_target)
string (REPLACE ";" "\n" _moc_parameters "${_moc_parameters}")
if(moc_target)
+ set (_moc_parameters_file ${_moc_parameters_file}$<$<BOOL:$<CONFIGURATION>>:_$<CONFIGURATION>>)
set(targetincludes "$<TARGET_PROPERTY:${moc_target},INCLUDE_DIRECTORIES>")
set(targetdefines "$<TARGET_PROPERTY:${moc_target},COMPILE_DEFINITIONS>")