From 797b95f830c7a2fbd886e74ff7b441fbc41b0701 Mon Sep 17 00:00:00 2001 From: Ignacio BurgueƱo Date: Wed, 24 Jun 2015 15:44:52 -0300 Subject: Use new key target_cpu --- src/luarocks/build/cmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/build/cmake.lua b/src/luarocks/build/cmake.lua index 3d0f22a2..22ee2cde 100644 --- a/src/luarocks/build/cmake.lua +++ b/src/luarocks/build/cmake.lua @@ -41,7 +41,7 @@ function cmake.run(rockspec) -- Try to pick the best generator. With msvc and x64, CMake does not select it by default so we need to be explicit. if cfg.is_platform("mingw32") and cfg.cmake_generator then args = args .. ' -G"'..cfg.cmake_generator.. '"' - elseif cfg.is_platform("windows") and cfg.arch:match("%-x86_64$") then + elseif cfg.is_platform("windows") and cfg.target_cpu:match("x86_64$") then args = args .. " -DCMAKE_GENERATOR_PLATFORM=x64" end -- cgit v1.2.3-55-g6feb