summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/apis/namespace/option/xmake.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/apis/namespace/option/xmake.lua b/tests/apis/namespace/option/xmake.lua
index 10f2d18f5..1bfbbe3fe 100644
--- a/tests/apis/namespace/option/xmake.lua
+++ b/tests/apis/namespace/option/xmake.lua
@@ -8,12 +8,14 @@ namespace("ns1", function ()
target("foo")
set_kind("static")
add_files("src/foo.cpp")
+ add_options("opt1")
namespace("ns2", function()
option("opt2", {default = true, defines = "NS2_OPT2", description = "option2"})
target("bar")
set_kind("static")
add_files("src/bar.cpp")
+ add_options("opt2")
end)
target("test")