diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2016-01-28 09:52:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-01-28 15:13:17 (GMT) |
commit | 63c5808f9328797ef225c0d81d60b0fa39ac7d3b (patch) | |
tree | ad8b068af57cd054a7e166eda017c6c6811bd502 /Help/command | |
parent | a336e438e2dc45ffffcd656cfc81507f94e0cec5 (diff) | |
download | CMake-63c5808f9328797ef225c0d81d60b0fa39ac7d3b.zip CMake-63c5808f9328797ef225c0d81d60b0fa39ac7d3b.tar.gz CMake-63c5808f9328797ef225c0d81d60b0fa39ac7d3b.tar.bz2 |
Help: Clarify scope of `if(TARGET)` expression
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/if.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst index 9548d0b..56e618c 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -67,9 +67,10 @@ Possible expressions are: True if the given name is an existing policy (of the form ``CMP<NNNN>``). ``if(TARGET target-name)`` - True if the given name is an existing logical target name such as those - created by the :command:`add_executable`, :command:`add_library`, or - :command:`add_custom_target` commands. + True if the given name is an existing logical target name created + by a call to the :command:`add_executable`, :command:`add_library`, + or :command:`add_custom_target` command that has already been invoked + (in any directory). ``if(TEST test-name)`` True if the given name is an existing test name created by the |