Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit f271a8e

Browse files
add var for custom plier/dpcomp (#204)
1 parent 948b8a2 commit f271a8e

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎mlir-compiler/CMakeLists.txt‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,18 @@ set(CMAKE_CXX_STANDARD 14)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
88

9-
add_subdirectory(plier)
109
add_subdirectory(mlir-compiler)
10+
11+
if(DEFINED DPCOMP_DIR)
12+
message(STATUS "PLIER from DPCOMP_DIR is used")
13+
target_include_directories(${PROJECT_NAME} PRIVATE
14+
${DPCOMP_DIR}/include
15+
)
16+
target_link_directories(${PROJECT_NAME} PRIVATE
17+
${DPCOMP_DIR}
18+
${DPCOMP_DIR}/Release
19+
)
20+
else()
21+
message(STATUS "PLIER from local directory is used")
22+
add_subdirectory(plier)
23+
endif()

0 commit comments

Comments
 (0)