summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mórász <[email protected]>2024-01-18 23:36:23 +0100
committerGitHub <[email protected]>2024-01-18 23:36:23 +0100
commit632e14f99b7dfc82717fba4f254eb3dd4da0c5ca (patch)
tree95cd9ce082303af740fecb30e2632a21f874796d
parent1ad16889bb0cdb3c7037e20f84056790fca09db9 (diff)
consider sources from targets with the c++.build.modules rule
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index 150720c1e..ddef34471 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -137,7 +137,7 @@ end
function _sourcebatch_is_built(sourcebatch)
-- we can only use rulename to filter them because sourcekind may be bound to multiple rules
local rulename = sourcebatch.rulename
- if rulename == "c.build" or rulename == "c++.build"
+ if rulename == "c.build" or rulename == "c++.build" or rulename == "c++.build.modules"
or rulename == "asm.build" or rulename == "cuda.build"
or rulename == "objc.build" or rulename == "objc++.build"
or rulename == "win.sdk.resource" then