From 126dac3ded46fd467e9622c9b75faa3ee01831ac Mon Sep 17 00:00:00 2001 From: Prashant Kumar Date: Wed, 16 Feb 2022 07:02:28 +0000 Subject: [PATCH] Cmake build commands fix. The external projects torch-mlir and torch-mlir-dialects should be placed inside double quotes. --- README.md | 2 +- build_tools/build_standalone.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed2dcc7e8..44cd8857b 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ cmake -GNinja -Bbuild \ -DCMAKE_CXX_COMPILER=clang++ \ -DPython3_FIND_VIRTUALENV=ONLY \ -DLLVM_ENABLE_PROJECTS=mlir \ - -DLLVM_EXTERNAL_PROJECTS=torch-mlir;torch-mlir-dialects \ + -DLLVM_EXTERNAL_PROJECTS="torch-mlir;torch-mlir-dialects" \ -DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR=`pwd` \ -DLLVM_EXTERNAL_TORCH_MLIR_DIALECTS_SOURCE_DIR=`pwd`/external/llvm-external-projects/torch-mlir-dialects \ -DMLIR_ENABLE_BINDINGS_PYTHON=ON \ diff --git a/build_tools/build_standalone.sh b/build_tools/build_standalone.sh index 0f63db2c0..372a8f17b 100755 --- a/build_tools/build_standalone.sh +++ b/build_tools/build_standalone.sh @@ -19,7 +19,7 @@ cmake -GNinja -B"$build_dir" "$llvm_project_dir/llvm" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DLLVM_ENABLE_PROJECTS=mlir \ - -DLLVM_EXTERNAL_PROJECTS=torch-mlir;torch-mlir-dialects \ + -DLLVM_EXTERNAL_PROJECTS="torch-mlir;torch-mlir-dialects" \ -DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$project_dir" \ -DLLVM_EXTERNAL_TORCH_MLIR_DIALECTS_SOURCE_DIR=${project_dir}/external/llvm-external-projects/torch-mlir-dialects \ -DMLIR_ENABLE_BINDINGS_PYTHON=ON \