Commit 40834d0a authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

set MLIR_DIR to default llvm root location if not provided

parent 21aeaafb
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -62,6 +62,9 @@ add_subdirectory(tools)
add_subdirectory(lib)

if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  if (NOT MLIR_DIR) 
    set(MLIR_DIR ${LLVM_ROOT}/lib/cmake/mlir)
  endif()
  add_subdirectory(mlir)
endif()

+0 −1
Original line number Diff line number Diff line
# Need to make sure to use the separate MLIR install
set(LLVM_ROOT ${MLIR_DIR})
find_package(MLIR REQUIRED CONFIG)