summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_DEPENDS_IN_PROJECT_ONLY.rst
diff options
context:
space:
mode:
authorAttila Krasznahorkay <Attila.Krasznahorkay@cern.ch>2016-03-22 12:18:42 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-22 20:04:15 (GMT)
commitb1e1aa1e6a2aa4c0da9d39f2e9f2a80d093f1dc7 (patch)
treea2500bf04a20c81fe90a5ace8c62ffb362163c23 /Help/variable/CMAKE_DEPENDS_IN_PROJECT_ONLY.rst
parent208524b822f7f6ccbe0414452cd9b050263565bc (diff)
downloadCMake-b1e1aa1e6a2aa4c0da9d39f2e9f2a80d093f1dc7.zip
CMake-b1e1aa1e6a2aa4c0da9d39f2e9f2a80d093f1dc7.tar.gz
CMake-b1e1aa1e6a2aa4c0da9d39f2e9f2a80d093f1dc7.tar.bz2
Makefile: Optionally scan only source and build trees for dependencies
Add a `CMAKE_DEPENDS_IN_PROJECT_ONLY` variable to activate the behavior.
Diffstat (limited to 'Help/variable/CMAKE_DEPENDS_IN_PROJECT_ONLY.rst')
-rw-r--r--Help/variable/CMAKE_DEPENDS_IN_PROJECT_ONLY.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_DEPENDS_IN_PROJECT_ONLY.rst b/Help/variable/CMAKE_DEPENDS_IN_PROJECT_ONLY.rst
new file mode 100644
index 0000000..7179071
--- /dev/null
+++ b/Help/variable/CMAKE_DEPENDS_IN_PROJECT_ONLY.rst
@@ -0,0 +1,10 @@
+CMAKE_DEPENDS_IN_PROJECT_ONLY
+-----------------------------
+
+When set to ``TRUE`` in a directory, the build system produced by the
+:ref:`Makefile Generators` is set up to only consider dependencies on source
+files that appear either in the source or in the binary directories. Changes
+to source files outside of these directories will not cause rebuilds.
+
+This should be used carefully in cases where some source files are picked up
+through external headers during the build.