Skip to content

Commit

Permalink
[mlir][spirv] Fix ADDITIONAL_HEADER_DIRS for SPIR-V libraries
Browse files Browse the repository at this point in the history
SPIRV/ headers live under mlir/Dialect/.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D72141
  • Loading branch information
antiagainst committed Jan 3, 2020
1 parent ca7fdd4 commit 1570084
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/SPIRV/CMakeLists.txt
Expand Up @@ -12,7 +12,7 @@ add_llvm_library(MLIRSPIRV
TargetAndABI.cpp

ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/SPIRV
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
)

add_dependencies(MLIRSPIRV
Expand Down
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/SPIRV/Serialization/CMakeLists.txt
Expand Up @@ -5,7 +5,7 @@ add_llvm_library(MLIRSPIRVSerialization
TranslateRegistration.cpp

ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/SPIRV
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
)

add_dependencies(MLIRSPIRVSerialization
Expand Down
3 changes: 3 additions & 0 deletions mlir/lib/Dialect/SPIRV/Transforms/CMakeLists.txt
@@ -1,6 +1,9 @@
add_llvm_library(MLIRSPIRVTransforms
DecorateSPIRVCompositeTypeLayoutPass.cpp
LowerABIAttributesPass.cpp

ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
)

target_link_libraries(MLIRSPIRVTransforms
Expand Down

0 comments on commit 1570084

Please sign in to comment.