aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmake.lua b/xmake.lua
index d7c46d684..88b6b8bae 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -94,15 +94,15 @@ if is_os("windows") then
set_description("Enable http.sys server")
add_defines("ZEN_WITH_HTTPSYS")
option_end()
-
- option("compute")
- set_default(true)
- set_showmenu(true)
- set_description("Enable compute services endpoint")
- add_defines("ZEN_WITH_COMPUTE_SERVICES")
- option_end()
end
+option("compute")
+ set_default(is_os("windows"))
+ set_showmenu(true)
+ set_description("Enable compute services endpoint")
+ add_defines("ZEN_WITH_COMPUTE_SERVICES")
+option_end()
+
set_warnings("allextra", "error")
set_languages("cxx20")