Skip to content

Commit 6baef84

Browse files
authored
fix CUDAToolkit_LIBRARY_ROOT DEFINED check
1 parent 84e8274 commit 6baef84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVM/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if ("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
5959
# See: https://gitlab.kitware.com/cmake/cmake/-/issues/24858
6060
# TODO: Bump the MLIR CMake version to 3.26.4 and switch to
6161
# ${CUDAToolkit_LIBRARY_ROOT}
62-
if(NOT DEFINED ${CUDAToolkit_LIBRARY_ROOT})
62+
if(NOT DEFINED CUDAToolkit_LIBRARY_ROOT)
6363
get_filename_component(MLIR_CUDAToolkit_ROOT ${CUDAToolkit_BIN_DIR}
6464
DIRECTORY ABSOLUTE)
6565
else()

0 commit comments

Comments
 (0)