Skip to content

Commit

Permalink
amend computation of the root dir of CUDAToolkit: CUDAToolkit_INCLUDE…
Browse files Browse the repository at this point in the history
…_DIR is not defined, but CUDAToolkit_LIBRARY_DIR is
  • Loading branch information
evaleev committed Jun 24, 2024
1 parent 8483e7f commit 0885420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ foreach (library cublas;nvToolsExt)
endforeach()

if (NOT DEFINED CUDAToolkit_ROOT)
get_filename_component(CUDAToolkit_ROOT "${CUDAToolkit_INCLUDE_DIR}/../" ABSOLUTE CACHE)
get_filename_component(CUDAToolkit_ROOT "${CUDAToolkit_LIBRARY_DIR}/../" ABSOLUTE CACHE)
endif(NOT DEFINED CUDAToolkit_ROOT)

# sanitize implicit dirs if CUDA host compiler != C++ compiler
Expand Down

0 comments on commit 0885420

Please sign in to comment.