summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-19 08:45:09 +0800
committerGitHub <[email protected]>2024-01-19 08:45:09 +0800
commit0e2e3de9ff82b8bdda7b1b72d039766cf4d4f2d6 (patch)
tree95cd9ce082303af740fecb30e2632a21f874796d
parent1ad16889bb0cdb3c7037e20f84056790fca09db9 (diff)
parent632e14f99b7dfc82717fba4f254eb3dd4da0c5ca (diff)
Merge pull request #4625 from microdee/bugfix/cpp-module-sources-in-cmakelists
[small fix] Include C++ module sources in generated CMake targets
-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