diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2014-04-25 16:24:56 (GMT) |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2014-04-25 16:24:56 (GMT) |
commit | 6a5bd7f0dacd96b66c294919fa5859ca12224d5f (patch) | |
tree | fb72681b77c2ce8793ec2d026a79106b1722ef25 /Modules/Qt4Macros.cmake | |
parent | 041dfea55b689fc1e0376c6f68c2e65b38a0507d (diff) | |
download | CMake-6a5bd7f0dacd96b66c294919fa5859ca12224d5f.zip CMake-6a5bd7f0dacd96b66c294919fa5859ca12224d5f.tar.gz CMake-6a5bd7f0dacd96b66c294919fa5859ca12224d5f.tar.bz2 |
Qt4: write moc parameter file only when content has changed
Diffstat (limited to 'Modules/Qt4Macros.cmake')
-rw-r--r-- | Modules/Qt4Macros.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Qt4Macros.cmake b/Modules/Qt4Macros.cmake index b1b12d6..8c4daac 100644 --- a/Modules/Qt4Macros.cmake +++ b/Modules/Qt4Macros.cmake @@ -135,7 +135,9 @@ function (QT4_CREATE_MOC_COMMAND infile outfile moc_flags moc_options moc_target set(targetincludes) set(targetdefines) else() - file(WRITE ${_moc_parameters_file} "${_moc_parameters}\n") + set(CMAKE_CONFIGURABLE_FILE_CONTENT "${_moc_parameters}") + configure_file("${CMAKE_ROOT}/Modules/CMakeConfigurableFile.in" + "${_moc_parameters_file}" @ONLY) endif() set(_moc_extra_parameters_file @${_moc_parameters_file}) |