瀏覽代碼

STYLE: add comment about the -D -P order and fix typo in doc

Alex
Alexander Neundorf 18 年之前
父節點
當前提交
68cb7b3173
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      Source/cmRemoveDefinitionsCommand.h
  2. 2 1
      Source/cmakemain.cxx

+ 1 - 1
Source/cmRemoveDefinitionsCommand.h

@@ -66,7 +66,7 @@ public:
       "  REMOVE_DEFINITIONS(-DFOO -DBAR ...)\n"
       "  REMOVE_DEFINITIONS(-DFOO -DBAR ...)\n"
       "Removes flags from command line of C and C++ compilers.  "
       "Removes flags from command line of C and C++ compilers.  "
       "This command can be used to remove any flag from a compile line, "
       "This command can be used to remove any flag from a compile line, "
-      "but the -D flag is accepted most C/C++ compilers.  "
+      "but the -D flag is accepted by most C/C++ compilers.  "
       "Other flags may not be as portable.";
       "Other flags may not be as portable.";
     }
     }
   
   

+ 2 - 1
Source/cmakemain.cxx

@@ -79,7 +79,8 @@ static const cmDocumentationEntry cmDocumentationOptions[] =
   {"-P <file>", "Process script mode.",
   {"-P <file>", "Process script mode.",
    "Process the given cmake file as a script written in the CMake language.  "
    "Process the given cmake file as a script written in the CMake language.  "
    "No configure or generate step is performed and the cache is not"
    "No configure or generate step is performed and the cache is not"
-   " modified."},
+   " modified. If variables are defined using -D, this must be done "
+   "before the -P argument."},
   {"--graphviz=[file]", "Generate graphviz of dependencies.",
   {"--graphviz=[file]", "Generate graphviz of dependencies.",
    "Generate a graphviz input file that will contain all the library and "
    "Generate a graphviz input file that will contain all the library and "
    "executable dependencies in the project."},
    "executable dependencies in the project."},