diff options
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua index 0c0f8cac9..a46947a53 100644 --- a/xmake/rules/c++/modules/xmake.lua +++ b/xmake/rules/c++/modules/xmake.lua @@ -134,6 +134,9 @@ rule("c++.build.modules.install") before_install(function (target) import("modules_support.common") + + -- we cannot use target:data("cxx.has_modules"), + -- because on_config will be not called when installing targets if common.contains_modules(target) then local sourcebatch = target:sourcebatches()["c++.build.modules.install"] if sourcebatch then |
