aboutsummaryrefslogtreecommitdiff
path: root/find-modules/FindGperf.cmake
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2019-01-08 00:50:43 +0100
committerFriedrich W. H. Kossebau <kossebau@kde.org>2019-01-25 20:48:57 +0100
commited985869924f4172c234afda123d65bc3bed4472 (patch)
tree285aaa2ff8f5e8c3862530ca42ec0285a8817074 /find-modules/FindGperf.cmake
parent7d73c6744f6455c585a6e059cf2753fcf20a870a (diff)
downloadextra-cmake-modules-ed985869924f4172c234afda123d65bc3bed4472.tar.gz
extra-cmake-modules-ed985869924f4172c234afda123d65bc3bed4472.tar.bz2
FindGperf: in ecm_gperf_generate set SKIP_AUTOMOC for generated file
Summary: Avoids to have manually set the property on the generated source file to deal with changed CMake policy CMP0071. Reviewers: #frameworks, pino, apol Reviewed By: apol Subscribers: kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D18088
Diffstat (limited to 'find-modules/FindGperf.cmake')
-rw-r--r--find-modules/FindGperf.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/find-modules/FindGperf.cmake b/find-modules/FindGperf.cmake
index 051ee7a6..d8c4d890 100644
--- a/find-modules/FindGperf.cmake
+++ b/find-modules/FindGperf.cmake
@@ -121,6 +121,7 @@ function(ecm_gperf_generate input_file output_file out_var)
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
VERBATIM
)
+ set_property(SOURCE ${output_file} PROPERTY SKIP_AUTOMOC ON)
list(APPEND ${out_var} "${output_file}")
set(${out_var} ${${out_var}} PARENT_SCOPE)