Skip to content

Commit

Permalink
fix cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Nov 13, 2024
1 parent f79bc78 commit 8dab45d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/f/fftw/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ package("fftw")
if package:is_plat("windows") and package:config("shared") then
package:add("defines", "FFTW_DLL")
end

if package:is_arch("arm.*") then
package:config_set("none")
end
end)

on_install(function (package)
local configs = {"-DBUILD_TESTS=OFF"}
local configs = {"-DBUILD_TESTS=OFF", "-DCMAKE_POLICY_DEFAULT_CMP0057=NEW"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DWITH_COMBINED_THREADS=" .. (package:config("shared") and "ON" or "OFF"))
Expand Down

0 comments on commit 8dab45d

Please sign in to comment.