Browse Source

Fixed CMake path on OSX when building LLVM.

pull/681/head
João Matos 9 years ago
parent
commit
af109207bd
  1. 4
      build/scripts/LLVM.lua

4
build/scripts/LLVM.lua

@ -145,7 +145,9 @@ end @@ -145,7 +145,9 @@ end
function cmake(gen, conf, builddir, options)
local cwd = os.getcwd()
os.chdir(builddir)
local cmd = "cmake -G " .. '"' .. gen .. '"'
local cmake = os.is_osx() and "/Applications/CMake.app/Contents/bin/cmake"
or "cmake"
local cmd = cmake .. " -G " .. '"' .. gen .. '"'
.. ' -DLLVM_BUILD_TOOLS=false '
.. ' -DLLVM_INCLUDE_EXAMPLES=false '
.. ' -DLLVM_INCLUDE_DOCS=false '

Loading…
Cancel
Save