From 092313cd7fca01919e1db273fa4ea5305af16258 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Tue, 30 Oct 2018 19:41:59 +0100 Subject: [PATCH] Mark tomahawk_i18n.qrc as BYPRODUCT to make ninja happy --- lang/translations.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/translations.cmake b/lang/translations.cmake index 7e1f18d16..9e8b46872 100644 --- a/lang/translations.cmake +++ b/lang/translations.cmake @@ -19,7 +19,9 @@ macro(add_tomahawk_translations language) set( tomahawk_i18n_qrc_content "${tomahawk_i18n_qrc_content}\n" ) set( tomahawk_i18n_qrc_content "${tomahawk_i18n_qrc_content}\n" ) - file( WRITE ${CMAKE_BINARY_DIR}/lang/tomahawk_i18n.qrc "${tomahawk_i18n_qrc_content}" ) + # Write file and configure it aferwards to make it a BYPRODUCT: https://gitlab.kitware.com/cmake/cmake/issues/16367 + file( WRITE ${CMAKE_BINARY_DIR}/lang/tomahawk_i18n.qrc.in "${tomahawk_i18n_qrc_content}" ) + configure_file(${CMAKE_BINARY_DIR}/lang/tomahawk_i18n.qrc.in ${CMAKE_BINARY_DIR}/lang/tomahawk_i18n.qrc COPYONLY) qt5_add_translation(QM_FILES ${TS_FILES})