summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakeMinimumRequired.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-01-03 20:47:58 (GMT)
committerBrad King <brad.king@kitware.com>2009-01-03 20:47:58 (GMT)
commitcd7585df22070bb8367c6486086f933c10f4a1ec (patch)
treeca8b807e73fa1150219c2d8b4d49847bf200f1ba /Source/cmCMakeMinimumRequired.h
parentee1d1b2c68ed5bdb719c2bb400a9069081e6b64d (diff)
downloadCMake-cd7585df22070bb8367c6486086f933c10f4a1ec.zip
CMake-cd7585df22070bb8367c6486086f933c10f4a1ec.tar.gz
CMake-cd7585df22070bb8367c6486086f933c10f4a1ec.tar.bz2
ENH: Ignore unknown cmake_minimum_required args
When cmake_minimum_required is called with an unknown argument it should not complain about it if the version specified is in the future. This allows the proper error to be shown about the current CMake being too old.
Diffstat (limited to 'Source/cmCMakeMinimumRequired.h')
-rw-r--r--Source/cmCMakeMinimumRequired.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCMakeMinimumRequired.h b/Source/cmCMakeMinimumRequired.h
index 4409294..47243f8 100644
--- a/Source/cmCMakeMinimumRequired.h
+++ b/Source/cmCMakeMinimumRequired.h
@@ -83,6 +83,10 @@ public:
}
cmTypeMacro(cmCMakeMinimumRequired, cmCommand);
+
+private:
+ std::vector<std::string> UnknownArguments;
+ bool EnforceUnknownArguments();
};