Help: Clarify if(TARGET) behavior (#14646)

Define the meaning of a "target" clearly and link to the commands
that create them.
This commit is contained in:
Brad King 2013-12-18 12:15:43 -05:00
parent b74819e4fe
commit 6b8662e681
1 changed files with 3 additions and 1 deletions

View File

@ -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