mirror of https://github.com/Kitware/CMake.git
Browse Source
Makefile: Optionally scan only source and build trees for dependencies
Makefile: Optionally scan only source and build trees for dependencies
Add a `CMAKE_DEPENDS_IN_PROJECT_ONLY` variable to activate the behavior.pull/230/head

committed by
Brad King

3 changed files with 72 additions and 0 deletions
-
1Help/manual/cmake-variables.7.rst
-
10Help/variable/CMAKE_DEPENDS_IN_PROJECT_ONLY.rst
-
61Source/cmLocalUnixMakefileGenerator3.cxx
@ -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. |
Write
Preview
Loading…
Cancel
Save
Reference in new issue