diff options
author | Brad King <brad.king@kitware.com> | 2017-01-24 19:45:19 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2017-01-24 19:45:19 (GMT) |
commit | 0e990a01f15dfcddebc24ca018d4695209226132 (patch) | |
tree | 9893e907d6b4c0b6e79dc087224126c72cab6340 | |
parent | f6e4602fe7467fe149f3843a3263a986ea1d804d (diff) | |
parent | 1c2ac0b8baebcf2496d701ab316f8f5666b470be (diff) | |
download | CMake-0e990a01f15dfcddebc24ca018d4695209226132.zip CMake-0e990a01f15dfcddebc24ca018d4695209226132.tar.gz CMake-0e990a01f15dfcddebc24ca018d4695209226132.tar.bz2 |
Merge topic 'qt4-lupdate-cmp0058'
1c2ac0b8 Qt4: Only change timestamp on generated .pro files if content changes
-rw-r--r-- | Modules/Qt4Macros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Qt4Macros.cmake b/Modules/Qt4Macros.cmake index 0279d1c..0478918 100644 --- a/Modules/Qt4Macros.cmake +++ b/Modules/Qt4Macros.cmake @@ -439,7 +439,7 @@ macro(QT4_CREATE_TRANSLATION _qm_files) get_filename_component(_abs_include "${_pro_include}" ABSOLUTE) string(APPEND _pro_includes " \\\n \"${_abs_include}\"") endforeach() - file(WRITE ${_ts_pro} "SOURCES =${_pro_srcs}\nINCLUDEPATH =${_pro_includes}\n") + file(GENERATE OUTPUT ${_ts_pro} CONTENT "SOURCES =${_pro_srcs}\nINCLUDEPATH =${_pro_includes}\n") endif() add_custom_command(OUTPUT ${_ts_file} COMMAND Qt4::lupdate |