mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
Do not store full CuDNN version in cache to exclude inconsistency during reconfiguration.
This commit is contained in:
parent
8af4fe9ed3
commit
dc9d775f88
@ -78,12 +78,7 @@ if(CUDNN_INCLUDE_DIR)
|
||||
string(REGEX MATCH "define CUDNN_PATCHLEVEL ([0-9]+)" _ "${CUDNN_H_CONTENTS}")
|
||||
set(CUDNN_VERSION_PATCH ${CMAKE_MATCH_1} CACHE INTERNAL "")
|
||||
|
||||
set(CUDNN_VERSION
|
||||
"${CUDNN_VERSION_MAJOR}.${CUDNN_VERSION_MINOR}.${CUDNN_VERSION_PATCH}"
|
||||
CACHE
|
||||
STRING
|
||||
"cuDNN version"
|
||||
)
|
||||
set(CUDNN_VERSION "${CUDNN_VERSION_MAJOR}.${CUDNN_VERSION_MINOR}.${CUDNN_VERSION_PATCH}")
|
||||
|
||||
unset(CUDNN_H_CONTENTS)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user