summaryrefslogtreecommitdiff
path: root/Source/cmCMakeMinimumRequired.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-26 11:12:50 -0400
committerBrad King <brad.king@kitware.com>2018-03-26 11:31:08 -0400
commit8dc97acb03db6d3d2f9effd84fd81432a68aa23c (patch)
treec9f3414a235dc540c6c7121465fa17d7145a3e74 /Source/cmCMakeMinimumRequired.h
parent6792c7787aedc0fb2a32b6ca563917f7447f2e80 (diff)
downloadcmake-8dc97acb03db6d3d2f9effd84fd81432a68aa23c.tar.gz
cmake_minimum_required: Tolerate unknown future arguments
When a `...<max>` version is given that is larger than the running version of CMake, assume that the project is aware of a newer version of CMake and that any unknown arguments are future arguments. This will allow future versions of CMake to add arguments to the command that projects can use without introducing errors in older versions of CMake (back to 3.12).
Diffstat (limited to 'Source/cmCMakeMinimumRequired.h')
-rw-r--r--Source/cmCMakeMinimumRequired.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCMakeMinimumRequired.h b/Source/cmCMakeMinimumRequired.h
index 18d9460ed6..f9b61e142c 100644
--- a/Source/cmCMakeMinimumRequired.h
+++ b/Source/cmCMakeMinimumRequired.h
@@ -34,7 +34,7 @@ public:
private:
std::vector<std::string> UnknownArguments;
- bool EnforceUnknownArguments();
+ bool EnforceUnknownArguments(std::string const& version_max);
};
#endif