File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,15 @@ else()
7777 set (LLVM_RUNTIME_OUTPUT_INTDIR ${CMAKE_BINARY_DIR} /bin)
7878 set (LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR} /lib)
7979
80- # LLVM_INCLUDE_DIRS is the same as MLIR_INCLUDE_DIRS in an MLIR install tree
8180 include_directories (${MLIR_INCLUDE_DIRS} )
81+ if (DEFINED LLVM_BUILD_BINARY_DIR )
82+ message (STATUS "Building IMEX with external MLIR build tree" )
83+ # LLVM_INCLUDE_DIRS needs to added if MLIR build tree is used.
84+ include_directories (${LLVM_INCLUDE_DIRS} )
85+ else ()
86+ message (STATUS "Building IMEX with external MLIR install tree" )
87+ # LLVM_INCLUDE_DIRS is the same as MLIR_INCLUDE_DIRS in an MLIR install tree
88+ endif ()
8289
8390 list (APPEND CMAKE_MODULE_PATH "${MLIR_CMAKE_DIR} " )
8491 list (APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR} " )
You can’t perform that action at this time.
0 commit comments