summaryrefslogtreecommitdiffstats
path: root/Help/command/add_test.rst
diff options
context:
space:
mode:
authorNeroBurner <pyro4hell@gmail.com>2020-12-21 10:26:22 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-21 18:54:25 (GMT)
commitaf7882ba6eb08d0879c2585b91560fd02ad43df6 (patch)
tree0220437c2bb76056964fc64d001e9c8f86f0e619 /Help/command/add_test.rst
parentc89514a6a47b678dddb703c302def4fe56abe275 (diff)
downloadCMake-af7882ba6eb08d0879c2585b91560fd02ad43df6.zip
CMake-af7882ba6eb08d0879c2585b91560fd02ad43df6.tar.gz
CMake-af7882ba6eb08d0879c2585b91560fd02ad43df6.tar.bz2
Help: replace deprecated $<CONFIGURATION> generator expression
The `$<CONFIGURATION>` genex has been deprecated since CMake 3.0. Use `$<CONFIG>` instead in the `add_test` example.
Diffstat (limited to 'Help/command/add_test.rst')
-rw-r--r--Help/command/add_test.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/command/add_test.rst b/Help/command/add_test.rst
index 832d8db..95cd037 100644
--- a/Help/command/add_test.rst
+++ b/Help/command/add_test.rst
@@ -57,7 +57,7 @@ Example usage:
.. code-block:: cmake
add_test(NAME mytest
- COMMAND testDriver --config $<CONFIGURATION>
+ COMMAND testDriver --config $<CONFIG>
--exe $<TARGET_FILE:myexe>)
This creates a test ``mytest`` whose command runs a ``testDriver`` tool