From 53138afabd91e9f3b4ee22a33eaaebb89317411a Mon Sep 17 00:00:00 2001 From: Chao Shen Date: Wed, 28 Mar 2018 15:02:44 +0800 Subject: [PATCH] Extract LLVM to specific directory. --- cmake/DownloadAndExtractLLVM.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/DownloadAndExtractLLVM.cmake b/cmake/DownloadAndExtractLLVM.cmake index 83f82b96..4a122e35 100644 --- a/cmake/DownloadAndExtractLLVM.cmake +++ b/cmake/DownloadAndExtractLLVM.cmake @@ -99,6 +99,8 @@ if(NOT EXISTS ${CLANG_ARCHIVE_EXTRACT_DIR}) message(STATUS "Extracting downloaded LLVM with CMake built-in tar ...") # CMake has builtin support for tar via the -E flag execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xf ${CLANG_ARCHIVE_FILE} + # Extract to here to allow running cmake from everywhere + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} OUTPUT_QUIET) endif() endif()