summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-07 00:51:07 +0800
committerruki <[email protected]>2025-01-07 00:51:07 +0800
commit508341ccfe39480a0465de602afc6db09980500c (patch)
tree7631a8d804a92594e4814ee2b72ff8f95f1d724f
parent61812aa80ba743e735368a52aec1c4c5bc4a7f5e (diff)
improve option test
-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")