You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Codefromxmake.iodocumentationoption("myoption")
set_default("hello world")
set_showmenu(true)
option_end()
target("test")
set_kind("binary")
add_files("src/*.cpp")
set_options("myoption")
on_config(function(target)
localmyoption=get_config("myoption")
-- Expected to return string type, but returned bool typeprint("myoption: ", myoption)
-- error: invalid replacement value (a boolean)print("myoption: ", "$(myoption)")
end)
error info
~/ xmake f --myoption=y
checking for platform ... linux
checking for architecture ... x86_64
myoption: true
error: invalid replacement value (a boolean)
Expected Behavior
#Codefromxmake.iodocumentationoption("myoption")
set_default("hello world")
set_showmenu(true)
option_end()
target("test")
set_kind("binary")
add_files("src/*.cpp")
set_options("myoption")
on_config(function(target)
localmyoption=get_config("myoption")
-- Expected to return string type, but returned bool typeprint("myoption: ", myoption)
-- error: invalid replacement value (a boolean)print("myoption: ", "$(myoption)")
end)
Project Configuration
#Codefromxmake.iodocumentationoption("myoption")
set_default("hello world")
set_showmenu(true)
option_end()
target("test")
set_kind("binary")
add_files("src/*.cpp")
set_options("myoption")
on_config(function(target)
localmyoption=get_config("myoption")
-- Expected to return string type, but returned bool typeprint("myoption: ", myoption)
-- error: invalid replacement value (a boolean)print("myoption: ", "$(myoption)")
end)
Additional Information and Error Logs
error info
xmake f --myoption=y
checking for platform ... linux
checking for architecture ... x86_64
myoption: true
error: invalid replacement value (a boolean)
The text was updated successfully, but these errors were encountered:
Xmake Version
2.9.2
Operating System Version and Architecture
Ubuntu 24.04 LTS
Describe Bug
error info
Expected Behavior
Project Configuration
Additional Information and Error Logs
error info
The text was updated successfully, but these errors were encountered: