Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
63c5808f
Commit
63c5808f
authored
Jan 28, 2016
by
Bartosz
Committed by
Brad King
Jan 28, 2016
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Help: Clarify scope of `if(TARGET)` expression
parent
a336e438
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Help/command/if.rst
Help/command/if.rst
+4
-3
No files found.
Help/command/if.rst
View file @
63c5808f
...
...
@@ -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
...
...
Brad King
@brad.king
mentioned in commit
c022b6f6
·
Feb 01, 2016
mentioned in commit
c022b6f6
mentioned in commit c022b6f6862c67885401d24c438acac457c64f31
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment