summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/cmake/cmakelists.lua
diff options
context:
space:
mode:
authorSirLynix <[email protected]>2022-05-07 10:11:23 +0200
committerSirLynix <[email protected]>2022-05-07 10:11:23 +0200
commit252013a37a7d8c5b1b5b9bed74c29b1ead968046 (patch)
treec297f8faee602a8c7379c054bb7054082e19b96c /xmake/plugins/project/cmake/cmakelists.lua
parent166c21c46cfc79104bab7a5b6646ee43ebad45db (diff)
Add some plugin.project.kind for project generators
Diffstat (limited to 'xmake/plugins/project/cmake/cmakelists.lua')
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index 6f771130c..fed2f7e42 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -131,6 +131,10 @@ end
-- add target: phony
function _add_target_phony(cmakelists, target)
+
+ -- https://github.com/xmake-io/xmake/issues/2337
+ target:data_set("plugin.project.kind", "cmakelist")
+
cmakelists:printf("add_custom_target(%s", target:name())
local deps = target:get("deps")
if deps then