diff options
| author | ruki <[email protected]> | 2019-05-04 21:19:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-05-04 21:19:04 +0800 |
| commit | dfdbe5da7702606001a2141082708f6ed5acd733 (patch) | |
| tree | 9fb0731c30cbae5120190e23569933402961e68f /xmake/modules/package/tools/cmake.lua | |
| parent | 27129a5b56f35e8d06d7358b42ab99e813b60f46 (diff) | |
improve package
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
| -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 17bb8bac0..7c21947d1 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -25,7 +25,7 @@ import("lib.detect.find_file") -- get configs function _get_configs(package, configs) local configs = configs or {} - if package:plat() == "windows" then + if package:is_plat("windows") then local vs_runtime = package:config("vs_runtime") if vs_runtime then table.insert(configs, '-DCMAKE_CXX_FLAGS_DEBUG="/' .. vs_runtime .. 'd"') |
