aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/build/cmake.lua2
1 files changed, 1 insertions, 1 deletions
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)
39 local args = "" 39 local args = ""
40 40
41 -- Try to pick the best generator. With msvc and x64, CMake does not select it by default so we need to be explicit. 41 -- Try to pick the best generator. With msvc and x64, CMake does not select it by default so we need to be explicit.
42 if cfg.is_platform("mingw32") and cfg.cmake_generator then 42 if cfg.cmake_generator then
43 args = args .. ' -G"'..cfg.cmake_generator.. '"' 43 args = args .. ' -G"'..cfg.cmake_generator.. '"'
44 elseif cfg.is_platform("windows") and cfg.target_cpu:match("x86_64$") then 44 elseif cfg.is_platform("windows") and cfg.target_cpu:match("x86_64$") then
45 args = args .. " -DCMAKE_GENERATOR_PLATFORM=x64" 45 args = args .. " -DCMAKE_GENERATOR_PLATFORM=x64"