From 553bb39bd9a0394a19e0c23706611533ef2f8fa3 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 4 Aug 2022 00:43:24 +0800 Subject: add some comments --- xmake/rules/c++/modules/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1