Skip to content

Commit

Permalink
Require at least CUDAToolkit version 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela committed Apr 15, 2022
1 parent bac1f88 commit 86d60a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE Release)
option(BUILD_SHARED_LIBS "Create shared libraries" True)

find_package(CUDAToolkit REQUIRED)
set(CUDA_MIN_VERSION 10.0)
find_package(CUDAToolkit ${CUDA_MIN_VERSION} REQUIRED)

# Define components
set(COMPONENTS cu nvrtc)
Expand Down
4 changes: 2 additions & 2 deletions cmake/cudawrappers-config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include(CMakeFindDependencyMacro)

find_package(CUDAToolkit REQUIRED)
find_package(CUDAToolkit @CUDA_MIN_VERSION@ REQUIRED)

foreach(component ${@PROJECT_NAME@_FIND_COMPONENTS})
include(${CMAKE_CURRENT_LIST_DIR}/${component}-config.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/${component}-config.cmake)
endforeach()

0 comments on commit 86d60a4

Please sign in to comment.