From 6e90b85cae4c08611ea567fd06871666eccfb115 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 18 Mar 2019 19:14:06 +0300 Subject: [PATCH] core: cache dir version update --- modules/core/src/utils/filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/utils/filesystem.cpp b/modules/core/src/utils/filesystem.cpp index b0dc9d559c..a1f8396df0 100644 --- a/modules/core/src/utils/filesystem.cpp +++ b/modules/core/src/utils/filesystem.cpp @@ -495,7 +495,7 @@ cv::String getCacheDirectory(const char* sub_directory_name, const char* configu if (utils::fs::isDirectory(default_cache_path)) { cv::String default_cache_path_base = utils::fs::join(default_cache_path, "opencv"); - default_cache_path = utils::fs::join(default_cache_path_base, "4.0" CV_VERSION_STATUS); + default_cache_path = utils::fs::join(default_cache_path_base, CVAUX_STR(CV_VERSION_MAJOR) "." CVAUX_STR(CV_VERSION_MINOR) CV_VERSION_STATUS); if (utils::getConfigurationParameterBool("OPENCV_CACHE_SHOW_CLEANUP_MESSAGE", true) && !utils::fs::isDirectory(default_cache_path)) {