Skip to content

Commit

Permalink
Cuda: Fix configuring with CMake 3.28.4 (kokkos#6898)
Browse files Browse the repository at this point in the history
* Cuda: Fix configuring with CMake 3.29.0

* CMake 3.28.4 is also affected
  • Loading branch information
masterleinad committed Mar 28, 2024
1 parent 2035e31 commit 8d734b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/Modules/FindTPLCUDA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ IF (NOT CUDAToolkit_ROOT)
ENDIF()
ENDIF()

IF(CMAKE_VERSION VERSION_GREATER_EQUAL "3.17.0")
# FIXME CMake 3.28.4 creates more targets than we export
IF(CMAKE_VERSION VERSION_GREATER_EQUAL "3.17.0" AND CMAKE_VERSION VERSION_LESS "3.28.4")
find_package(CUDAToolkit)
ELSE()
include(${CMAKE_CURRENT_LIST_DIR}/CudaToolkit.cmake)
Expand Down

0 comments on commit 8d734b0

Please sign in to comment.