Skip to content

Commit 4481b50

Browse files
committed
Add automatic kit scanning
1 parent 52f1efc commit 4481b50

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/cmake-tools/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ function cmake.generate(opt, callback)
206206
-- if exists cmake-kits.json, kit is used to set
207207
-- environmental variables and args.
208208
local kits_config = kits.parse(const.cmake_kits_path, config.cwd)
209+
if not kits_config then
210+
kits_config = scanner.scan_for_kits()
211+
end
209212
if kits_config and not config.kit then
210213
return cmake.select_kit(function(result)
211214
if not result:is_ok() then

0 commit comments

Comments
 (0)