enable /stdifcsearchdir only if user ask for it
@@ -69,6 +69,7 @@ function load(target)
target:add("cxxflags", "@" .. mapper_file, {force = true, expand = false})
-- add stdifcdir in case of if the user want to use Microsoft modularised STL
+ if target:values("msvc.modules.stdifcdir") then
local stdifcdirflag = get_stdifcdirflag(target)
for _, toolchain_inst in ipairs(target:toolchains()) do
if toolchain_inst:name() == "msvc" then
@@ -82,6 +83,7 @@ function load(target)
break
end
end
+ end
-- add module cachedirs of all dependent targets with modules
-- this target maybe does not contain module files, @see https://github.com/xmake-io/xmake/issues/1858
