From f2029f292341d91cc14f747befd19cf557d3c7bf Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Wed, 17 Nov 2021 13:25:37 +0100 Subject: Moved compute xmake config option out of the is-windows block --- xmake.lua | 14 +++++++------- 1 file 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") -- cgit v1.2.3