Skip to content

Commit 03b3166

Browse files
committed
cmake: Exclude generated sources from translation
1 parent 43e287b commit 03b3166

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/qt/CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,13 @@ function(get_translatable_sources var)
288288
get_target_property(target_source_dir ${target} SOURCE_DIR)
289289
cmake_path(APPEND target_source_dir ${source} OUTPUT_VARIABLE source)
290290
endif()
291-
list(APPEND result ${source})
291+
get_property(is_generated
292+
SOURCE ${source} TARGET_DIRECTORY ${target}
293+
PROPERTY GENERATED
294+
)
295+
if(NOT is_generated)
296+
list(APPEND result ${source})
297+
endif()
292298
endforeach()
293299
endif()
294300
endforeach()

0 commit comments

Comments
 (0)