From 9e11d805c13dd58d2829437cf1cc464161d4c73c Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 5 Feb 2018 21:21:56 +0100 Subject: [PATCH] Prevent running Qt's generator on files from this generator --- lib/cmake/modules/ReflectionGenerator.cmake | 3 +++ 1 file changed, 3 insertions(+) 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})