From 6e4fc0b23940cee7038859b51198701d677b6347 Mon Sep 17 00:00:00 2001 From: Dmitry Khominich Date: Sun, 5 Oct 2025 00:23:04 +0200 Subject: [PATCH] Suggest using system cmake if the recipe fails. Updated validation message to include guidance on using system CMake with the [platform_tool_requires profile section. Related documentation: https://docs.conan.io/2/reference/config_files/profiles.html#platform-tool-requires --- recipes/cmake/binary/conanfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/cmake/binary/conanfile.py b/recipes/cmake/binary/conanfile.py index 79ade991d07b0..e12390168085b 100644 --- a/recipes/cmake/binary/conanfile.py +++ b/recipes/cmake/binary/conanfile.py @@ -20,7 +20,8 @@ class CMakeConan(ConanFile): def validate(self): if self.settings.arch not in ["x86_64", "armv8"]: - raise ConanInvalidConfiguration("CMake binaries are only provided for x86_64 and armv8 architectures") + raise ConanInvalidConfiguration("CMake binaries are only provided for x86_64 and armv8 architectures. " + + "Consider using the system cmake with [platform_tool_requires] section in your profile.") if self.settings.os == "Windows" and self.settings.arch == "armv8" and Version(self.version) < "3.24": raise ConanInvalidConfiguration("CMake only supports ARM64 binaries on Windows starting from 3.24")