summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/cmake/cmakelists.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-17 23:22:27 +0800
committerruki <[email protected]>2022-08-17 23:22:27 +0800
commit437c4ab00991749fb8db108cb2b14f4dff81333c (patch)
tree673349a836b68c33a1222effd4318edb0546ff41 /xmake/plugins/project/cmake/cmakelists.lua
parent53049fbbe417b7fa85c773fc7c9bb83d3be1115b (diff)
fix compile_comands
Diffstat (limited to 'xmake/plugins/project/cmake/cmakelists.lua')
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index 5154956e6..55b3fba01 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -115,7 +115,9 @@ 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" or rulename == "asm.build" or rulename == "cuda.build" then
+ if rulename == "c.build" or rulename == "c++.build"
+ or rulename == "asm.build" or rulename == "cuda.build"
+ or rulename == "objc.build" or rulename == "objc++.build" then
return true
end
end