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()
77
77
set (LLVM_RUNTIME_OUTPUT_INTDIR ${CMAKE_BINARY_DIR} /bin )
78
78
set (LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR} /lib )
79
79
80
- # LLVM_INCLUDE_DIRS is the same as MLIR_INCLUDE_DIRS in an MLIR install tree
81
80
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 ()
82
89
83
90
list (APPEND CMAKE_MODULE_PATH "${MLIR_CMAKE_DIR} " )
84
91
list (APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR} " )
You can’t perform that action at this time.
0 commit comments