[Mlir-commits] [mlir] 97e48aa - [mlir-cuda-runner] Unbreak the build
Benjamin Kramer
llvmlistbot at llvm.org
Tue Oct 13 13:39:53 PDT 2020
Author: Benjamin Kramer
Date: 2020-10-13T22:36:08+02:00
New Revision: 97e48aadbd79184d1b3207c4f846c83e155be8dd
URL: https://github.com/llvm/llvm-project/commit/97e48aadbd79184d1b3207c4f846c83e155be8dd
DIFF: https://github.com/llvm/llvm-project/commit/97e48aadbd79184d1b3207c4f846c83e155be8dd.diff
LOG: [mlir-cuda-runner] Unbreak the build
CMake Error at llvm/cmake/modules/AddLLVM.cmake:870 (add_dependencies):
The dependency target "Core" of target "mlir-cuda-runner" does not exist.
Call Stack (most recent call first):
llvm/cmake/modules/AddLLVM.cmake:1169 (add_llvm_executable)
mlir/tools/mlir-cuda-runner/CMakeLists.txt:69 (add_llvm_tool)
CMake Error at llvm/cmake/modules/AddLLVM.cmake:870 (add_dependencies):
The dependency target "LINK_COMPONENTS" of target "mlir-cuda-runner" does
not exist.
Call Stack (most recent call first):
llvm/cmake/modules/AddLLVM.cmake:1169 (add_llvm_executable)
mlir/tools/mlir-cuda-runner/CMakeLists.txt:69 (add_llvm_tool)
CMake Error at llvm/cmake/modules/AddLLVM.cmake:870 (add_dependencies):
The dependency target "Support" of target "mlir-cuda-runner" does not
exist.
Call Stack (most recent call first):
llvm/cmake/modules/AddLLVM.cmake:1169 (add_llvm_executable)
mlir/tools/mlir-cuda-runner/CMakeLists.txt:69 (add_llvm_tool)
Added:
Modified:
mlir/tools/mlir-cuda-runner/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/tools/mlir-cuda-runner/CMakeLists.txt b/mlir/tools/mlir-cuda-runner/CMakeLists.txt
index 38e6ac5b5b86..8a99418ebf65 100644
--- a/mlir/tools/mlir-cuda-runner/CMakeLists.txt
+++ b/mlir/tools/mlir-cuda-runner/CMakeLists.txt
@@ -2,6 +2,10 @@ set(LLVM_OPTIONAL_SOURCES
cuda-runtime-wrappers.cpp
mlir-cuda-runner.cpp
)
+set(LLVM_LINK_COMPONENTS
+ Core
+ Support
+)
if(MLIR_CUDA_RUNNER_ENABLED)
if (NOT ("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD))
@@ -71,10 +75,6 @@ if(MLIR_CUDA_RUNNER_ENABLED)
DEPENDS
cuda-runtime-wrappers
-
- LINK_COMPONENTS
- Core
- Support
)
target_include_directories(mlir-cuda-runner
PRIVATE ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}
More information about the Mlir-commits
mailing list