summaryrefslogtreecommitdiff
path: root/tests/c++_static_library/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/c++_static_library/xmake.lua')
-rwxr-xr-xtests/c++_static_library/xmake.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/c++_static_library/xmake.lua b/tests/c++_static_library/xmake.lua
index 9fc5b6026..c57927a5d 100755
--- a/tests/c++_static_library/xmake.lua
+++ b/tests/c++_static_library/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("cpp_static_library")
+target("cpp_static_library")
-- set kind
set_kind("static")
@@ -31,7 +31,7 @@ def_target("cpp_static_library")
add_files("src/interface.cpp")
-- add target
-def_target("test")
+target("test")
-- set kind
set_kind("binary")