summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakeMinimumRequired.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-26 15:12:50 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-26 15:31:08 (GMT)
commit8dc97acb03db6d3d2f9effd84fd81432a68aa23c (patch)
treec9f3414a235dc540c6c7121465fa17d7145a3e74 /Source/cmCMakeMinimumRequired.h
parent6792c7787aedc0fb2a32b6ca563917f7447f2e80 (diff)
downloadCMake-8dc97acb03db6d3d2f9effd84fd81432a68aa23c.zip
CMake-8dc97acb03db6d3d2f9effd84fd81432a68aa23c.tar.gz
CMake-8dc97acb03db6d3d2f9effd84fd81432a68aa23c.tar.bz2
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 18d9460..f9b61e1 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