|
@@ -67,9 +67,10 @@ Possible expressions are:
|
|
|
True if the given name is an existing policy (of the form ``CMP<NNNN>``).
|
|
True if the given name is an existing policy (of the form ``CMP<NNNN>``).
|
|
|
|
|
|
|
|
``if(TARGET target-name)``
|
|
``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)``
|
|
``if(TEST test-name)``
|
|
|
True if the given name is an existing test name created by the
|
|
True if the given name is an existing test name created by the
|
|
@@ -80,7 +81,7 @@ Possible expressions are:
|
|
|
only for full paths.
|
|
only for full paths.
|
|
|
|
|
|
|
|
``if(file1 IS_NEWER_THAN file2)``
|
|
``if(file1 IS_NEWER_THAN file2)``
|
|
|
- True if file1 is newer than file2 or if one of the two files doesn't
|
|
|
|
|
|
|
+ True if ``file1`` is newer than ``file2`` or if one of the two files doesn't
|
|
|
exist. Behavior is well-defined only for full paths. If the file
|
|
exist. Behavior is well-defined only for full paths. If the file
|
|
|
time stamps are exactly the same, an ``IS_NEWER_THAN`` comparison returns
|
|
time stamps are exactly the same, an ``IS_NEWER_THAN`` comparison returns
|
|
|
true, so that any dependent build operations will occur in the event
|
|
true, so that any dependent build operations will occur in the event
|