summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/shared_library/project/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/templates/c++/shared_library/project/xmake.lua')
-rw-r--r--xmake/templates/c++/shared_library/project/xmake.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/templates/c++/shared_library/project/xmake.lua b/xmake/templates/c++/shared_library/project/xmake.lua
index a8f13b901..ee3579a6c 100644
--- a/xmake/templates/c++/shared_library/project/xmake.lua
+++ b/xmake/templates/c++/shared_library/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("shared")
@@ -31,7 +31,7 @@ def_target("[targetname]")
add_files("src/interface.cpp")
-- add target
-def_target("test")
+target("test")
-- set kind
set_kind("binary")