From ca32edd88dff520736f0b27997b1ea76be545512 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 8 Oct 2019 10:29:30 +0800 Subject: [PATCH] Update xmake.lua --- packages/n/nana/xmake.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/n/nana/xmake.lua b/packages/n/nana/xmake.lua index 531f5ecdd..97a38ab24 100644 --- a/packages/n/nana/xmake.lua +++ b/packages/n/nana/xmake.lua @@ -19,7 +19,11 @@ package("nana") end on_install("linux", "windows", function (package) - import("package.tools.cmake").install(package, {"-DNANA_CMAKE_NANA_FILESYSTEM_FORCE=ON", "-DNANA_CMAKE_ENABLE_JPEG=OFF", "-DNANA_CMAKE_ENABLE_PNG=OFF"}) + local configs = {"-DNANA_CMAKE_ENABLE_JPEG=OFF", "-DNANA_CMAKE_ENABLE_PNG=OFF"} + if is_plat("linux") then + table.insert(configs, "-DNANA_CMAKE_NANA_FILESYSTEM_FORCE=ON") + end + import("package.tools.cmake").install(package, configs) end) on_test(function (package)