Forráskód Böngészése

add_test: Document test name restrictions (#14298)

Brad King 12 éve
szülő
commit
d0170584c5
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      Source/cmAddTestCommand.h

+ 3 - 0
Source/cmAddTestCommand.h

@@ -71,6 +71,9 @@ public:
       "  add_test(NAME <name> [CONFIGURATIONS [Debug|Release|...]]\n"
       "  add_test(NAME <name> [CONFIGURATIONS [Debug|Release|...]]\n"
       "           [WORKING_DIRECTORY dir]\n"
       "           [WORKING_DIRECTORY dir]\n"
       "           COMMAND <command> [arg1 [arg2 ...]])\n"
       "           COMMAND <command> [arg1 [arg2 ...]])\n"
+      "Add a test called <name>.  "
+      "The test name may not contain spaces, quotes, or other characters "
+      "special in CMake syntax.  "
       "If COMMAND specifies an executable target (created by "
       "If COMMAND specifies an executable target (created by "
       "add_executable) it will automatically be replaced by the location "
       "add_executable) it will automatically be replaced by the location "
       "of the executable created at build time.  "
       "of the executable created at build time.  "