Skip to content

Commit

Permalink
cmake: Exclude generated sources from translation
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Feb 18, 2025
1 parent 43e287b commit 03b3166
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,13 @@ function(get_translatable_sources var)
get_target_property(target_source_dir ${target} SOURCE_DIR)
cmake_path(APPEND target_source_dir ${source} OUTPUT_VARIABLE source)
endif()
list(APPEND result ${source})
get_property(is_generated
SOURCE ${source} TARGET_DIRECTORY ${target}
PROPERTY GENERATED
)
if(NOT is_generated)
list(APPEND result ${source})
endif()
endforeach()
endif()
endforeach()
Expand Down

0 comments on commit 03b3166

Please sign in to comment.