Skip to content

Commit d352c28

Browse files
cyyeverpytorchmergebot
authored andcommitted
[2/N] Remove FindPackageHandleStandardArgs.cmake (#156559)
Following #157188, this PR removes FindPackageHandleStandardArgs.cmake Pull Request resolved: #156559 Approved by: https://github.com/albanD
1 parent 0c0fcb5 commit d352c28

File tree

3 files changed

+1
-389
lines changed

3 files changed

+1
-389
lines changed

cmake/Modules_CUDA_fix/FindCUDA.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77

88
set(UPSTREAM_FIND_CUDA_DIR "${CMAKE_CURRENT_LIST_DIR}/upstream/")
99

10-
include("${UPSTREAM_FIND_CUDA_DIR}/CMakeInitializeConfigs.cmake")
1110
include("${UPSTREAM_FIND_CUDA_DIR}/FindCUDA.cmake")

cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@
414414

415415
# FindCUDA.cmake
416416

417+
include(FindPackageHandleStandardArgs)
417418
# This macro helps us find the location of helper files we will need the full path to
418419
macro(CUDA_FIND_HELPER_FILE _name _extension)
419420
set(_full_name "${_name}.${_extension}")
@@ -1065,8 +1066,6 @@ set(CUDA_TOOLKIT_TARGET_DIR_INTERNAL "${CUDA_TOOLKIT_TARGET_DIR}" CACHE INTERNAL
10651066
set(CUDA_SDK_ROOT_DIR_INTERNAL "${CUDA_SDK_ROOT_DIR}" CACHE INTERNAL
10661067
"This is the value of the last time CUDA_SDK_ROOT_DIR was set successfully." FORCE)
10671068

1068-
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
1069-
10701069
find_package_handle_standard_args(CUDA
10711070
REQUIRED_VARS
10721071
CUDA_TOOLKIT_ROOT_DIR

0 commit comments

Comments
 (0)