diff --git a/cmake/DownloadAndExtractLLVM.cmake b/cmake/DownloadAndExtractLLVM.cmake index 83f82b96a..4a122e355 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()