From 2b6e785638abac8b5059ee683ca1af770a055576 Mon Sep 17 00:00:00 2001 From: William Bell <62452284+Ugric@users.noreply.github.com> Date: Fri, 15 Aug 2025 19:19:15 +0100 Subject: [PATCH] fix conan file --- conanfile.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/conanfile.py b/conanfile.py index c979a70..3f50a17 100644 --- a/conanfile.py +++ b/conanfile.py @@ -31,18 +31,11 @@ class ArgonConan(ConanFile): def generate(self): tc = CMakeToolchain(self) - # Try to find flex in system PATH first flex_path = which("flex") - - # If not found, fallback to flex from Conan build requirements if not flex_path: - flex_dep = self.dependencies.build.get("flex", None) - if not flex_dep: - raise Exception("Flex not found in system PATH and not declared as build requirement") - flex_path = join(flex_dep.package_folder, "bin", "flex") + raise Exception("Flex not found in system PATH. Please install flex on your system.") tc.variables["FLEX_EXECUTABLE"] = flex_path - tc.generate() def build(self):