summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-24 12:37:08 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-24 12:37:08 (GMT)
commit7213408287971b395bee21f9aeb59d1e393dc6a9 (patch)
tree883bb5b4ead553de734507e629eedf897bc99799 /Source/cmMakefile.h
parentf5d86035f285816f174de6d0b14833f5b48d048b (diff)
downloadCMake-7213408287971b395bee21f9aeb59d1e393dc6a9.zip
CMake-7213408287971b395bee21f9aeb59d1e393dc6a9.tar.gz
CMake-7213408287971b395bee21f9aeb59d1e393dc6a9.tar.bz2
ENH: Added cmMakefile::NeedCacheCompatibility method and support for it in cmCacheManager. This will allow commands to modify their behavior when running with a cache loaded from an earlier CMake version.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 6bc8067..e511851 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -58,6 +58,10 @@ public:
*/
unsigned int GetCacheMajorVersion();
unsigned int GetCacheMinorVersion();
+
+ /** Return whether compatibility features needed for a version of
+ the cache or lower should be enabled. */
+ bool NeedCacheCompatibility(int major, int minor);
/**
* Construct an empty makefile.