Ensure that torch-mlir-dialects is built when we're out of tree

Its unclear to me what the right layering is here: Are you expecting
torch-mlir-dialects to always get built with LLVM?  This is pretty
breaking for us, if so.
pull/628/head
Stephen Neuendorffer 2022-02-25 14:45:28 -08:00 committed by Yi Zhang
parent 330042aa4c
commit 9b2613533b
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
set(TORCH-MLIR_BUILT_STANDALONE 1) set(TORCH-MLIR_BUILT_STANDALONE 1)
set(BACKEND_PACKAGE_STRING "LLVM ${LLVM_PACKAGE_VERSION}") set(BACKEND_PACKAGE_STRING "LLVM ${LLVM_PACKAGE_VERSION}")
add_subdirectory(external/llvm-external-projects/torch-mlir-dialects)
else() else()
# In-tree build with LLVM_EXTERNAL_PROJECTS=torch-mlir # In-tree build with LLVM_EXTERNAL_PROJECTS=torch-mlir
# FIXME: This should really be inherited from the LLVM tree. In particular, # FIXME: This should really be inherited from the LLVM tree. In particular,