diff options
-rw-r--r-- | src/luarocks/build/cmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
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.is_platform("mingw32") and 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.arch: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" |
46 | end | 46 | end |
47 | 47 | ||