summaryrefslogtreecommitdiffstats
path: root/Modules/Qt4Macros.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-12 17:22:17 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-12-12 17:22:17 (GMT)
commit3e97bcb1ef18c7b1e16f81733896764bfd8178aa (patch)
tree5b0afdd4ed7dce5271914b145b6efc610a2a98d5 /Modules/Qt4Macros.cmake
parentb9f0d81c4b605af7667a1f384fc20c17a577f5a8 (diff)
downloadCMake-3e97bcb1ef18c7b1e16f81733896764bfd8178aa.zip
CMake-3e97bcb1ef18c7b1e16f81733896764bfd8178aa.tar.gz
CMake-3e97bcb1ef18c7b1e16f81733896764bfd8178aa.tar.bz2
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 b5f005f..fd9819f 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>")