From af109207bd310b649a9ba35ae53133abcf94a242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Matos?= Date: Thu, 21 Jul 2016 17:10:31 +0100 Subject: [PATCH] Fixed CMake path on OSX when building LLVM. --- build/scripts/LLVM.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/scripts/LLVM.lua b/build/scripts/LLVM.lua index 8583395c..1cefd081 100644 --- a/build/scripts/LLVM.lua +++ b/build/scripts/LLVM.lua @@ -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 '