diff options
author | Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch> | 2016-03-22 12:18:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-22 20:04:15 (GMT) |
commit | b1e1aa1e6a2aa4c0da9d39f2e9f2a80d093f1dc7 (patch) | |
tree | a2500bf04a20c81fe90a5ace8c62ffb362163c23 /Help | |
parent | 208524b822f7f6ccbe0414452cd9b050263565bc (diff) | |
download | CMake-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')
-rw-r--r-- | Help/manual/cmake-variables.7.rst | 1 | ||||
-rw-r--r-- | Help/variable/CMAKE_DEPENDS_IN_PROJECT_ONLY.rst | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Help/manual/cmake-variables.7.rst b/Help/manual/cmake-variables.7.rst index cb50051..5fd5c5c 100644 --- a/Help/manual/cmake-variables.7.rst +++ b/Help/manual/cmake-variables.7.rst @@ -114,6 +114,7 @@ Variables that Change Behavior /variable/CMAKE_COLOR_MAKEFILE /variable/CMAKE_CONFIGURATION_TYPES /variable/CMAKE_DEBUG_TARGET_PROPERTIES + /variable/CMAKE_DEPENDS_IN_PROJECT_ONLY /variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName /variable/CMAKE_ERROR_DEPRECATED /variable/CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION 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. |