diff options
author | Brad King <brad.king@kitware.com> | 2013-12-18 17:15:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-12-18 17:15:43 (GMT) |
commit | 6b8662e681088e991bfd7afd41cf0e68bce0fce1 (patch) | |
tree | 5622abc2389d893e59e6d8b691e09376edda46be /Help/command/if.rst | |
parent | b74819e4fe0fce953f44210ff5b229c999406780 (diff) | |
download | CMake-6b8662e681088e991bfd7afd41cf0e68bce0fce1.zip CMake-6b8662e681088e991bfd7afd41cf0e68bce0fce1.tar.gz CMake-6b8662e681088e991bfd7afd41cf0e68bce0fce1.tar.bz2 |
Help: Clarify if(TARGET) behavior (#14646)
Define the meaning of a "target" clearly and link to the commands
that create them.
Diffstat (limited to 'Help/command/if.rst')
-rw-r--r-- | Help/command/if.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst index 7123c9a..49c356e 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -66,7 +66,9 @@ 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 target, built or imported. + 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. ``if(EXISTS path-to-file-or-directory)`` True if the named file or directory exists. Behavior is well-defined |