diff options
| author | Arthur LAURENT <[email protected]> | 2024-04-10 16:01:04 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-04-10 16:01:26 +0200 |
| commit | 546dd2ee7ec2a4bae9b8a866300313bad9bb8c7a (patch) | |
| tree | 29698ae0c51c99ad985c83393ab1035c461fe296 /xmake/modules/package/tools/cmake.lua | |
| parent | 5a29f4cd631037145d74ad67227c5486c9a08247 (diff) | |
use package:runtimes instead of package:config("runtimes")
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index be01d8867..063d13cb8 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -184,8 +184,7 @@ function _get_cxxflags(package, opt) table.join2(result, _map_compflags(package, "cxx", "includedir", package:build_getenv("includedirs"))) table.join2(result, _map_compflags(package, "cxx", "sysincludedir", package:build_getenv("sysincludedirs"))) end - table.join2(result, _map_compflags(package, "cxx", "runtime", package:config("runtimes"))) - local runtimes = package:config("runtimes") + local runtimes = package:runtimes() if runtimes then local fake_target = {is_shared = function(_) return false end, sourcekinds = function(_) return "cxx" end} |
