summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/console
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-17 20:35:16 +0800
committerruki <[email protected]>2016-02-17 20:35:16 +0800
commitd316be4334127336822e8daeb8a45d2ffe0bdde7 (patch)
treecb517e6a91d64073d67d1870edf72356299da84c /xmake/templates/c++/console
parent1015eb5af840daeb67af07ba359a18ee5d5215c6 (diff)
modify interfaces for xmake.lua
Diffstat (limited to 'xmake/templates/c++/console')
-rw-r--r--xmake/templates/c++/console/project/xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/templates/c++/console/project/xmake.lua b/xmake/templates/c++/console/project/xmake.lua
index 3491b4fd7..bc427742c 100644
--- a/xmake/templates/c++/console/project/xmake.lua
+++ b/xmake/templates/c++/console/project/xmake.lua
@@ -1,5 +1,5 @@
-- the debug mode
-if modes("debug") then
+if is_mode("debug") then
-- enable the debug symbols
set_symbols("debug")
@@ -9,7 +9,7 @@ if modes("debug") then
end
-- the release mode
-if modes("release") then
+if is_mode("release") then
-- set the symbols visibility: hidden
set_symbols("hidden")
@@ -22,7 +22,7 @@ if modes("release") then
end
-- add target
-def_target("[targetname]")
+target("[targetname]")
-- set kind
set_kind("binary")