summaryrefslogtreecommitdiff
path: root/Modules/CMakeGenericSystem.cmake
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2018-10-24 11:22:50 +0200
committerSebastian Holtermann <sebholt@xwmw.org>2018-11-03 12:14:40 +0100
commitb5e895b5d41dc688bf0acdec352cbccc178a7236 (patch)
treeec8b65fd661689d0c814f1e9583b12ce402e23fa /Modules/CMakeGenericSystem.cmake
parent443c574a7cc39ea490fabd1392108e651806a3e6 (diff)
downloadcmake-b5e895b5d41dc688bf0acdec352cbccc178a7236.tar.gz
Autogen: Add (CMAKE_)AUTOGEN_ORIGIN_DEPENDS support
This adds - the variable ``CMAKE_AUTOGEN_ORIGIN_DEPENDS`` which initializes - the target property ``AUTOGEN_ORIGIN_DEPENDS`` which controls whether or not the origin target dependencies should be forwarded to the corresponding ``_autogen`` target. The default value of ``CMAKE_AUTOGEN_ORIGIN_DEPENDS`` is ``ON`` which corresponds to the behavior that is in place since CMake 3.9. Closes: #18493
Diffstat (limited to 'Modules/CMakeGenericSystem.cmake')
-rw-r--r--Modules/CMakeGenericSystem.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake
index 02cb464501..ddfc7bd230 100644
--- a/Modules/CMakeGenericSystem.cmake
+++ b/Modules/CMakeGenericSystem.cmake
@@ -23,6 +23,8 @@ set(CMAKE_DL_LIBS "dl")
set(CMAKE_FIND_LIBRARY_PREFIXES "lib")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a")
+
+set(CMAKE_AUTOGEN_ORIGIN_DEPENDS ON)
set(CMAKE_AUTOMOC_COMPILER_PREDEFINES ON)
set(CMAKE_AUTOMOC_MACRO_NAMES "Q_OBJECT" "Q_GADGET" "Q_NAMESPACE")