From 79ffabfb806ff608db0cb9356627c61889b73284 Mon Sep 17 00:00:00 2001 From: Ignacio BurgueƱo Date: Thu, 25 Jun 2015 11:22:34 -0300 Subject: Don't restrict the generator override to mingw --- 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 22ee2cde..7b16fa51 100644 --- a/src/luarocks/build/cmake.lua +++ b/src/luarocks/build/cmake.lua @@ -39,7 +39,7 @@ function cmake.run(rockspec) local args = "" -- 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 + if cfg.cmake_generator then args = args .. ' -G"'..cfg.cmake_generator.. '"' elseif cfg.is_platform("windows") and cfg.target_cpu:match("x86_64$") then args = args .. " -DCMAKE_GENERATOR_PLATFORM=x64" -- cgit v1.2.3-55-g6feb