summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-05-29 20:51:28 +0800
committerGitHub <[email protected]>2024-05-29 20:51:28 +0800
commit02ea6962aeabced2117938181db5e8f48185cb05 (patch)
treecea7270e29a93477014b05d9b7283d1e296d6b32 /xmake/modules/package/tools/cmake.lua
parent5767107d1e7f66288e9b7eebd4272ba443cbffa0 (diff)
parentc43e8533e5738fce03a58557c63377f60ac263e4 (diff)
Merge pull request #5167 from xmake-io/cmake
add encoding flags when generate cmakelists
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 9c54fddb5..681bbf209 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -824,7 +824,7 @@ function _get_envs_for_runtime_flags(package, configs, opt)
local runtimes = package:runtimes()
if runtimes then
local fake_target = {is_shared = function(_) return false end,
- sourcekinds = function(_) return "c" end}
+ sourcekinds = function(_) return "cc" end}
envs[format("CMAKE_C_FLAGS_%s", buildtype)] = _map_compflags(fake_target, "c", "runtime", runtimes)
fake_target.sourcekinds = function(_) return "cxx" end
envs[format("CMAKE_CXX_FLAGS_%s", buildtype)] = _map_compflags(fake_target, "cxx", "runtime", runtimes)