diff options
| author | ruki <[email protected]> | 2024-05-29 23:59:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-05-29 23:59:19 +0800 |
| commit | c43e8533e5738fce03a58557c63377f60ac263e4 (patch) | |
| tree | c8671081d6be23feac5eafb90f38d33a888ea022 | |
| parent | ffb53524e7dcbe9eef3e4691cfc8e074d7d47291 (diff) | |
fix sourcekinds
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 7b8aef360..5336a7c69 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -814,7 +814,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) |
