summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmDynamicLoader.cxx5
-rw-r--r--Source/cmDynamicLoader.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx
index c997e38..7e21a7f 100644
--- a/Source/cmDynamicLoader.cxx
+++ b/Source/cmDynamicLoader.cxx
@@ -356,3 +356,8 @@ const char* cmDynamicLoader::LastError()
return dlerror();
}
#endif
+
+void cmDynamicLoader::FlushCache()
+{
+ cmDynamicLoaderCache::GetInstance()->FlushCache();
+}
diff --git a/Source/cmDynamicLoader.h b/Source/cmDynamicLoader.h
index 3938528..dfc3be0 100644
--- a/Source/cmDynamicLoader.h
+++ b/Source/cmDynamicLoader.h
@@ -69,6 +69,10 @@ public:
// Description:
// Return the last error produced from a calls made on this class.
static const char* LastError();
+
+ // Description:
+ // Flush the cache of dynamic loader.
+ static void FlushCache();
protected:
cmDynamicLoader() {};