diff options
| author | ruki <[email protected]> | 2022-01-09 21:55:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-09 21:55:47 +0800 |
| commit | 2431dd7e6142ff98b55741cfd4de4d2e69f4f8b5 (patch) | |
| tree | 2a51c869a3aea1a093ed569e749bdf0465634a6c /xmake/modules/package/tools/cmake.lua | |
| parent | 175c4cb26d1ca68a1ef90c78e5d99e7252cc02a8 (diff) | |
| parent | 80e1bd8df356ab25802e518bac38aff7dfe45702 (diff) | |
Merge pull request #1966 from fasiondog/master
Improve cmake.tool, make and ninja supports the specified target
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 4ced3e67d..f49cedf0b 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -554,8 +554,12 @@ end -- do build for make function _build_for_make(package, configs, opt) + local argv = {} + if opt.target then + table.insert(argv, opt.target) + end local jobs = _get_parallel_njobs(opt) - local argv = {"-j" .. jobs} + table.insert(argv, "-j" .. jobs) if option.get("verbose") then table.insert(argv, "VERBOSE=1") end |
