[mlir][spirv] Fix ADDITIONAL_HEADER_DIRS for SPIR-V libraries
authorLei Zhang <antiagainst@google.com>
Fri, 3 Jan 2020 20:05:24 +0000 (15:05 -0500)
committerLei Zhang <antiagainst@google.com>
Fri, 3 Jan 2020 20:06:09 +0000 (15:06 -0500)
SPIRV/ headers live under mlir/Dialect/.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D72141

mlir/lib/Dialect/SPIRV/CMakeLists.txt
mlir/lib/Dialect/SPIRV/Serialization/CMakeLists.txt
mlir/lib/Dialect/SPIRV/Transforms/CMakeLists.txt

index e3769ac..da7fd1a 100644 (file)
@@ -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
index 05a6c9c..d2dd15a 100644 (file)
@@ -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
index 8316d54..f9b5a56 100644 (file)
@@ -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