Merge topic 'fix-project-COMPAT_VERSION'

09701440d9 project: Fix handling of COMPAT_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10838
This commit is contained in:
Brad King
2025-05-29 14:12:53 +00:00
committed by Kitware Robot
+1 -1
View File
@@ -243,7 +243,7 @@ bool cmProjectCommand(std::vector<std::string> const& args,
}
if (cmSystemTools::VersionCompareGreater(*prArgs.CompatVersion,
*prArgs.Version)) {
version_string)) {
mf.IssueMessage(MessageType::FATAL_ERROR,
"COMPAT_VERSION must be less than or equal to VERSION");
cmSystemTools::SetFatalErrorOccurred();