Skip to content

Commit

Permalink
improve option test
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 6, 2025
1 parent 61812aa commit 508341c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/apis/namespace/option/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 508341c

Please sign in to comment.