diff options
| author | fasiondog <[email protected]> | 2022-01-09 16:13:31 +0800 |
|---|---|---|
| committer | fasiondog <[email protected]> | 2022-01-09 16:13:31 +0800 |
| commit | 80e1bd8df356ab25802e518bac38aff7dfe45702 (patch) | |
| tree | fc8d3d7d618368a2e5fbdab88ed6a0ea9fc273ed /xmake/modules/package/tools/cmake.lua | |
| parent | 187da27473c69bd9d7b0009d8d689ec924f16dfb (diff) | |
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 |
