• cmake -help


    {

    Usage

      cmake [options] <path-to-source>
      cmake [options] <path-to-existing-build>

    Specify a source directory to (re-)generate a build system for it in the
    current working directory.  Specify an existing build directory to
    re-generate its build system.

    Options
      -C <initial-cache>           = Pre-load a script to populate the cache.
      -D <var>[:<type>]=<value>    = Create a cmake cache entry.
      -U <globbing_expr>           = Remove matching entries from CMake cache.
      -G <generator-name>          = Specify a build system generator.
      -T <toolset-name>            = Specify toolset name if supported by
                                     generator.
      -A <platform-name>           = Specify platform name if supported by
                                     generator.
      -Wdev                        = Enable developer warnings.
      -Wno-dev                     = Suppress developer warnings.
      -Werror=dev                  = Make developer warnings errors.
      -Wno-error=dev               = Make developer warnings not errors.
      -Wdeprecated                 = Enable deprecation warnings.
      -Wno-deprecated              = Suppress deprecation warnings.
      -Werror=deprecated           = Make deprecated macro and function warnings
                                     errors.
      -Wno-error=deprecated        = Make deprecated macro and function warnings
                                     not errors.
      -E                           = CMake command mode.
      -L[A][H]                     = List non-advanced cached variables.
      --build <dir>                = Build a CMake-generated project binary tree.
      -N                           = View mode only.
      -P <file>                    = Process script mode.
      --find-package               = Run in pkg-config like mode.
      --graphviz=[file]            = Generate graphviz of dependencies, see
                                     CMakeGraphVizOptions.cmake for more.
      --system-information [file]  = Dump information about this system.
      --debug-trycompile           = Do not delete the try_compile build tree.
                                     Only useful on one try_compile at a time.
      --debug-output               = Put cmake in a debug mode.
      --trace                      = Put cmake in trace mode.
      --trace-expand               = Put cmake in trace mode with variable
                                     expansion.
      --trace-source=<file>        = Trace only this CMake file/module.  Multiple
                                     options allowed.
      --warn-uninitialized         = Warn about uninitialized values.
      --warn-unused-vars           = Warn about unused variables.
      --no-warn-unused-cli         = Don't warn about command line options.
      --check-system-vars          = Find problems with variable usage in system
                                     files.
      --help,-help,-usage,-h,-H,/? = Print usage information and exit.
      --version,-version,/V [<f>]  = Print version number and exit.
      --help-full [<f>]            = Print all help manuals and exit.
      --help-manual <man> [<f>]    = Print one help manual and exit.
      --help-manual-list [<f>]     = List help manuals available and exit.
      --help-command <cmd> [<f>]   = Print help for one command and exit.
      --help-command-list [<f>]    = List commands with help available and exit.
      --help-commands [<f>]        = Print cmake-commands manual and exit.
      --help-module <mod> [<f>]    = Print help for one module and exit.
      --help-module-list [<f>]     = List modules with help available and exit.
      --help-modules [<f>]         = Print cmake-modules manual and exit.
      --help-policy <cmp> [<f>]    = Print help for one policy and exit.
      --help-policy-list [<f>]     = List policies with help available and exit.
      --help-policies [<f>]        = Print cmake-policies manual and exit.
      --help-property <prop> [<f>] = Print help for one property and exit.
      --help-property-list [<f>]   = List properties with help available and
                                     exit.
      --help-properties [<f>]      = Print cmake-properties manual and exit.
      --help-variable var [<f>]    = Print help for one variable and exit.
      --help-variable-list [<f>]   = List variables with help available and exit.
      --help-variables [<f>]       = Print cmake-variables manual and exit.

    Generators

    The following generators are available on this platform:
      Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                     Optional [arch] can be "Win64" or "ARM".
      Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                     Optional [arch] can be "Win64" or "ARM".
      Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
                                     Optional [arch] can be "Win64" or "ARM".
      Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
                                     Optional [arch] can be "Win64" or "ARM".
      Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
                                     Optional [arch] can be "Win64" or "IA64".
      Visual Studio 9 2008 [arch]  = Generates Visual Studio 2008 project files.
                                     Optional [arch] can be "Win64" or "IA64".
      Visual Studio 8 2005 [arch]  = Deprecated.  Generates Visual Studio 2005
                                     project files.  Optional [arch] can be
                                     "Win64".
      Borland Makefiles            = Generates Borland makefiles.
      NMake Makefiles              = Generates NMake makefiles.
      NMake Makefiles JOM          = Generates JOM makefiles.
      Green Hills MULTI            = Generates Green Hills MULTI files
                                     (experimental, work-in-progress).
      MSYS Makefiles               = Generates MSYS makefiles.
      MinGW Makefiles              = Generates a make file for use with
                                     mingw32-make.
      Unix Makefiles               = Generates standard UNIX makefiles.
      Ninja                        = Generates build.ninja files.
      Watcom WMake                 = Generates Watcom WMake makefiles.
      CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files.
      CodeBlocks - NMake Makefiles = Generates CodeBlocks project files.
      CodeBlocks - NMake Makefiles JOM
                                   = Generates CodeBlocks project files.
      CodeBlocks - Ninja           = Generates CodeBlocks project files.
      CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
      CodeLite - MinGW Makefiles   = Generates CodeLite project files.
      CodeLite - NMake Makefiles   = Generates CodeLite project files.
      CodeLite - Ninja             = Generates CodeLite project files.
      CodeLite - Unix Makefiles    = Generates CodeLite project files.
      Sublime Text 2 - MinGW Makefiles
                                   = Generates Sublime Text 2 project files.
      Sublime Text 2 - NMake Makefiles
                                   = Generates Sublime Text 2 project files.
      Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
      Sublime Text 2 - Unix Makefiles
                                   = Generates Sublime Text 2 project files.
      Kate - MinGW Makefiles       = Generates Kate project files.
      Kate - NMake Makefiles       = Generates Kate project files.
      Kate - Ninja                 = Generates Kate project files.
      Kate - Unix Makefiles        = Generates Kate project files.
      Eclipse CDT4 - NMake Makefiles
                                   = Generates Eclipse CDT 4.0 project files.
      Eclipse CDT4 - MinGW Makefiles
                                   = Generates Eclipse CDT 4.0 project files.
      Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
      Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.

    }

    {

    用法


    cmake[选项]<path to source>

    CMAD[OPTION] <现有构建路径>


    指定一个源目录,以便(重新)在

    当前工作目录。指定现有的生成目录

    重新生成其生成系统。


    选项

    -C<initial cache>=预加载脚本以填充缓存。

    -D<var>[:<type>]=<value>=创建cmake缓存项。

    -U<globbing_expr>=从CMake缓存中删除匹配项。

    -G<generator name>=指定生成系统生成器。

    -T<toolset name>=如果支持,请指定工具集名称

    发电机。

    -A<platform name>=如果支持,请指定平台名称

    发电机。

    -Wdev=启用开发人员警告。

    -Wno dev=禁止显示开发人员警告。

    -Werror=dev=生成开发人员警告错误。

    -Wno error=dev=使开发人员警告不是错误。

    -Wdeprecated=启用弃用警告。

    -Wno deprecated=取消弃用警告。

    -Werror=deprecated=Make deprecated宏和函数警告

    错误。

    -Wno error=deprecated=Make deprecated宏和函数警告

    不是错误。

    -E=CMake命令模式。

    -L[A][H]=列出非高级缓存变量。

    --build<dir>=生成CMake生成的项目二叉树。

    -N=仅查看模式。

    -P<file>=进程脚本模式。

    --find package=在类似pkg配置的模式下运行。

    --graphviz=[file]=生成依赖关系的graphviz,请参见

    CMakeGraphVizOptions.cmake了解更多信息。

    --系统信息[文件]=转储有关此系统的信息。

    --debug try compile=不要删除try_编译生成树。

    一次只对一个try_编译有用。

    --调试输出=将cmake置于调试模式。

    --trace=将cmake置于跟踪模式。

    --trace expand=使用变量将cmake置于跟踪模式

    扩张。

    --trace source=<file>=仅跟踪此CMake文件/模块。多重

    允许选项。

    --warn uninitialized=警告未初始化的值。

    --warn unused vars=警告未使用的变量。

    --no warn unused cli=不警告命令行选项。

    --check system vars=查找系统中变量使用的问题

    文件夹。

    --帮助,-帮助,-用法,-h,-h,/?=打印使用信息并退出。

    -版本,-版本,/v[< f> ] =打印版本号和退出。

    -帮助完整[< f> ] =打印所有帮助手册并退出。

    -帮助手册<…> =打印一个帮助手册并退出。

    -帮助手册列表[< f> ] =列表帮助手册可用和退出。

    -帮助命令< CMD> [< f> ] =打印帮助一个命令并退出。

    -帮助命令列表[< f> ] =列表命令与可用的帮助和退出。

    -帮助命令[< f> ] =打印CMASK命令手册并退出。

    -帮助模块< mod > [< f> ] =打印帮助一个模块并退出。

    -帮助模块列表[< f> ] =列表模块,在可用的帮助下退出。

    “帮助模块”=“打印模块”和“手动”和“退出”。

    -帮助策略<CMP> [< f> ] =打印帮助一个策略并退出。

    ——帮助策略列表[f> > =列表策略,可用帮助和退出。

    ——帮助策略[< f> ] =打印CGuffic策略手册并退出。

    ——帮助属性< PROP> [< F> ] =打印一个属性的帮助,然后退出。

    --help property list[<f>]=列出具有可用帮助和

    出口。

    -帮助属性[< f> ] =打印cFisher属性手册并退出。

    -变量帮助=一个变量的打印帮助和退出。

    ——帮助变量列表[< f> ] =列表变量,在可用的帮助下退出。

    ——帮助变量[< f> ] =打印CVICE变量手册并退出。


    发电机


    此平台上提供以下发电机:

    Visual Studio 15 2017[arch]=生成Visual Studio 2017项目文件。

    可选[arch]可以是“Win64”或“ARM”。

    Visual Studio 14 2015[arch]=生成Visual Studio 2015项目文件。

    可选[arch]可以是“Win64”或“ARM”。

    Visual Studio 12 2013[arch]=生成Visual Studio 2013项目文件。

    可选[arch]可以是“Win64”或“ARM”。

    Visual Studio 11 2012[arch]=生成Visual Studio 2012项目文件。

    可选[arch]可以是“Win64”或“ARM”。

    Visual Studio 10 2010[arch]=生成Visual Studio 2010项目

    可选[arch]可以是“Win64”或“IA64”。

    Visual Studio 9 2008[arch]=生成Visual Studio 2008项目文件。

    可选[arch]可以是“Win64”或“IA64”。

    Visual Studio 8 2005[arch]=已弃用。生成Visual Studio 2005

    项目文件。可选的[arch]可以是

    “Win64”。

    Borland Makefiles=生成Borland Makefiles。

    NMake Makefiles=生成NMake Makefiles。

    NMake Makefiles JOM=生成JOM Makefiles。

    Green Hills MULTI=生成Green Hills多文件

    (实验性,进行中的工作)。

    MSYS Makefiles=生成MSYS Makefiles。

    MinGW Makefiles=生成用于

    明威32品牌。

    Unix Makefiles=生成标准的Unix makefile。

    忍者=生成build.Ninja文件。

    Watcom WMake=生成Watcom WMake生成文件。

    CodeBlocks-MinGW Makefiles=生成代码块项目文件。

    CodeBlocks-NMake Makefiles=生成代码块项目文件。

    代码块-NMake Makefiles JOM

    =生成代码块项目文件。

    CodeBlocks-Ninja=生成代码块项目文件。

    CodeBlocks-Unix Makefiles=生成代码块项目文件。

    CodeLite-MinGW Makefiles=生成CodeLite项目文件。

    CodeLite-NMake Makefiles=生成CodeLite项目文件。

    CodeLite-Ninja=生成CodeLite项目文件。

    CodeLite-Unix Makefiles=生成CodeLite项目文件。

    升华文本2-MinGW Makefiles

    =生成Sublime Text 2项目文件。

    升华文本2-生成Makefiles

    =生成Sublime Text 2项目文件。

    Sublime Text 2-忍者=生成Sublime Text 2项目文件。

    Sublime Text 2-Unix生成文件

    =生成Sublime Text 2项目文件。

    Kate-MinGW Makefiles=生成Kate项目文件。

    Kate-NMake Makefiles=生成Kate项目文件。

    Kate-Ninja=生成Kate项目文件。

    Kate-Unix Makefiles=生成Kate项目文件。

    Eclipse CDT4-NMake生成文件

    =生成EclipseCDT4.0项目文件。

    Eclipse CDT4-MinGW生成文件

    =生成EclipseCDT4.0项目文件。

    Eclipse CDT4-Ninja=生成eclipsecdt4.0项目文件。

    Eclipse CDT4-Unix Makefiles=生成Eclipse CDT4.0项目文件。

    }

  • 相关阅读:
    Hadoop 解除 “Name node is in safe mode”
    ubuntu永久修改主机名
    ssh免密码登录
    su 和 su- 会影响环境变量
    卸载ubuntu自带openJDK,更改成自己的JDK版本
    ubuntu安装jdk 1.6
    147.Insertion Sort List
    145.Binary Tree Postorder Traversal
    144.Binary Tree Preorder Traversal
    143.Reorder List
  • 原文地址:https://www.cnblogs.com/YZFHKMS-X/p/11866407.html
Copyright © 2020-2023  润新知