summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-24 19:45:19 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-24 19:45:19 (GMT)
commit0e990a01f15dfcddebc24ca018d4695209226132 (patch)
tree9893e907d6b4c0b6e79dc087224126c72cab6340
parentf6e4602fe7467fe149f3843a3263a986ea1d804d (diff)
parent1c2ac0b8baebcf2496d701ab316f8f5666b470be (diff)
downloadCMake-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.cmake2
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