Skip to content

Commit

Permalink
Fixup MLIR target export in AIEConfig.cmake
Browse files Browse the repository at this point in the history
MLIR_CONFIG_INCLUDE_EXPORTS_FILE was not generated for a build directory,
which caused errors when this was being used.
  • Loading branch information
stephenneuendorffer committed Jan 4, 2024
1 parent 652d0f7 commit 3d7eacd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmake/modules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ set(AIE_CONFIG_TOOLS_BINARY_DIR "${PROJECT_BINARY_DIR}/bin")
set(AIE_CONFIG_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include"
"${PROJECT_BINARY_DIR}/include")
set(AIE_CONFIG_EXPORTS_FILE "\${AIE_CMAKE_DIR}/AIETargets.cmake")
set(MLIR_CONFIG_INCLUDE_EXPORTS_FILE "\${MLIR_DIR}/MLIRTargets.cmake")
set(AIE_CONFIG_LibXAIE_x86_64_DIR)
if("x86_64" IN_LIST AIE_RUNTIME_TARGETS)
set(AIE_CONFIG_LibXAIE_x86_64_DIR
Expand Down Expand Up @@ -59,7 +60,7 @@ set(AIE_CONFIG_BINARY_DIR "\${AIE_INSTALL_PREFIX}")
set(AIE_CONFIG_TOOLS_BINARY_DIR "\${AIE_INSTALL_PREFIX}/bin")
set(AIE_CONFIG_INCLUDE_DIRS "\${AIE_INSTALL_PREFIX}/include")
set(AIE_CONFIG_EXPORTS_FILE "\${AIE_CMAKE_DIR}/AIETargets.cmake")
set(MLIR_CONFIG_INCLUDE_EXPORTS_FILE "\${AIE_CMAKE_DIR}/MLIRTargets.cmake")
set(MLIR_CONFIG_INCLUDE_EXPORTS_FILE "\${MLIR_DIR}/MLIRTargets.cmake")
set(AIE_CONFIG_LibXAIE_x86_64_DIR)
if("x86_64" IN_LIST AIE_RUNTIME_TARGETS)
set(AIE_CONFIG_LibXAIE_x86_64_DIR
Expand Down Expand Up @@ -87,10 +88,6 @@ install(
EXPORT AIETargets
DESTINATION ${AIE_INSTALL_PACKAGE_DIR}
COMPONENT aie-cmake-exports)
install(
EXPORT MLIRTargets
DESTINATION ${AIE_INSTALL_PACKAGE_DIR}
COMPONENT aie-cmake-exports)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/AIEConfig.cmake
DESTINATION ${AIE_INSTALL_PACKAGE_DIR}
Expand Down

0 comments on commit 3d7eacd

Please sign in to comment.