diff options
| -rw-r--r-- | xmake/rules/c++/modules/config.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/config.lua b/xmake/rules/c++/modules/config.lua index a0f7dcc33..30f2f2680 100644 --- a/xmake/rules/c++/modules/config.lua +++ b/xmake/rules/c++/modules/config.lua @@ -90,7 +90,7 @@ function main(target) end function insert_stdmodules(target) - if target:data("cxx.has_modules") then + if target:data("cxx.has_modules") and target:policy("build.c++.modules.std") then local sourcebatches = target:sourcebatches() if sourcebatches and sourcebatches["c++.build.modules.scanner"] then local sourcebatch = sourcebatches["c++.build.modules.scanner"] |
