diff options
| -rw-r--r-- | xmake/core/project/target.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/winsdk/xmake.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 617141791..d3bb27766 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1574,7 +1574,7 @@ function _instance:sourcebatches() -- attempt to get source kind from the builtin languages local sourcekind = self:sourcekind_of(sourcefile) - if sourcekind and not override then + if sourcekind and target:get("sourcekinds") and not override then -- save source kind sourcebatch.sourcekind = sourcekind diff --git a/xmake/rules/winsdk/xmake.lua b/xmake/rules/winsdk/xmake.lua index a6a639dd3..0a3b105cc 100644 --- a/xmake/rules/winsdk/xmake.lua +++ b/xmake/rules/winsdk/xmake.lua @@ -20,7 +20,7 @@ -- define rule: win.sdk.resource rule("win.sdk.resource") - set_extensions(".rc") + set_sourcekinds("mrc") on_build_files("private.action.build.object", {batch = true}) -- define rule: application |
