【发布时间】:2014-09-17 17:18:59
【问题描述】:
C:\blah\duh\bin\Android>"C:\Program Files (x86)\CMake\bin\cmake.exe" --build . --target SysTest --use-stderr -- -j 8
我有这个上面的 CMake 构建命令。我知道--build . 将从当前目录中的 Makefile 构建。但是选项--target SysTest 和-j 8 有什么作用?这是--build 的CMake 文档,但我承认,我不明白--target 的用法。
--build <dir>
Build a CMake-generated project binary tree.
This abstracts a native build tool’s command-line interface with the following options:
<dir> = Project binary directory to be built.
--target <tgt> = Build <tgt> instead of default targets.
--config <cfg> = For multi-configuration tools, choose <cfg>.
--clean-first = Build target 'clean' first, then build.
(To clean only, use --target 'clean'.)
--use-stderr = Ignored. Behavior is default in CMake >= 3.0.
-- = Pass remaining options to the native tool.
【问题讨论】:
-
-j8是您允许构建使用的作业数
标签: cmake