core: freeze cache directory prefix - "4.x"
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 18 Dec 2022 00:24:52 +0000 (00:24 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 18 Dec 2022 00:24:52 +0000 (00:24 +0000)
modules/core/src/utils/filesystem.cpp

index 663ec311e4cf17c1bbe7088aad04f16a1eb62451..415323490dad7b86693781619fd7f472459425e6 100644 (file)
@@ -503,7 +503,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, CVAUX_STR(CV_VERSION_MAJOR) "." CVAUX_STR(CV_VERSION_MINOR) CV_VERSION_STATUS);
+                default_cache_path = utils::fs::join(default_cache_path_base, "4.x" CV_VERSION_STATUS);
                 if (utils::getConfigurationParameterBool("OPENCV_CACHE_SHOW_CLEANUP_MESSAGE", true)
                     && !utils::fs::isDirectory(default_cache_path))
                 {