You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
358 B
11 lines
358 B
5 months ago
|
rule("lsp.msvc_inc_inject")
|
||
|
on_load(function (target)
|
||
|
local includepaths = os.getenv("INCLUDE")
|
||
|
if includepaths then
|
||
|
for _, _path in ipairs(includepaths:split(";")) do
|
||
|
if string.find(_path, "VC") then
|
||
|
target:add("includedirs", _path)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end)
|