diff --git a/lib/cmake/modules/ReflectionGenerator.cmake b/lib/cmake/modules/ReflectionGenerator.cmake index 78f87bf..caf7f67 100644 --- a/lib/cmake/modules/ReflectionGenerator.cmake +++ b/lib/cmake/modules/ReflectionGenerator.cmake @@ -153,6 +153,9 @@ function(add_reflection_generator_invocation) VERBATIM ) + # prevent Qt's code generator to be executed on the files generated by this code generator + set_property(SOURCE "${OUTPUT_FILE}" PROPERTY SKIP_AUTOGEN ON) + # append the output file to lists specified via OUTPUT_LISTS if(ARGS_OUTPUT_LISTS) foreach(OUTPUT_LIST ${ARGS_OUTPUT_LISTS})