summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-04 21:19:04 +0800
committerruki <[email protected]>2019-05-04 21:19:04 +0800
commitdfdbe5da7702606001a2141082708f6ed5acd733 (patch)
tree9fb0731c30cbae5120190e23569933402961e68f /xmake/modules/package/tools/cmake.lua
parent27129a5b56f35e8d06d7358b42ab99e813b60f46 (diff)
improve package
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 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"')