diff options
author | Craig Scott <craig.scott@crascit.com> | 2020-04-30 12:07:14 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-04-30 12:07:32 (GMT) |
commit | 1665d5615fdf9ff618007553e9e447da21428d84 (patch) | |
tree | 728c26502acd471a0f96a06b014679d865053f27 /Help | |
parent | 2291253c1ba2f2f5f8192ba283f8291b9b6ea24f (diff) | |
parent | bd6e437e3eaf609823c95beba4cb9cb3a1a40e65 (diff) | |
download | CMake-1665d5615fdf9ff618007553e9e447da21428d84.zip CMake-1665d5615fdf9ff618007553e9e447da21428d84.tar.gz CMake-1665d5615fdf9ff618007553e9e447da21428d84.tar.bz2 |
Merge topic 'doc-PROJECT_SOURCE_DIR'
bd6e437e3e Help: Clarify the use of PROJECT_SOURCE_DIR
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4680
Diffstat (limited to 'Help')
-rw-r--r-- | Help/variable/PROJECT_SOURCE_DIR.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Help/variable/PROJECT_SOURCE_DIR.rst b/Help/variable/PROJECT_SOURCE_DIR.rst index 27f2838..b4601c2 100644 --- a/Help/variable/PROJECT_SOURCE_DIR.rst +++ b/Help/variable/PROJECT_SOURCE_DIR.rst @@ -1,6 +1,8 @@ PROJECT_SOURCE_DIR ------------------ -Top level source directory for the current project. - -This is the source directory of the most recent :command:`project` command. +This is the source directory of the last call to the +:command:`project` command made in the current directory scope or one +of its parents. Note, it is not affected by calls to +:command:`project` made within a child directory scope (i.e. from +within a call to :command:`add_subdirectory` from the current scope). |