fix conan

This commit is contained in:
William Bell
2025-08-16 02:31:15 +01:00
parent 8928ab2d99
commit 5277814af0
2 changed files with 6 additions and 10 deletions

View File

@@ -33,16 +33,11 @@ class ArgonConan(ConanFile):
os.environ["CONAN_NON_INTERACTIVE"] = "1"
tc = CMakeToolchain(self)
if os.name == "nt": # Windows
flex_path = which("win_flex") or which("win_flex.exe")
if not flex_path:
raise Exception("win_flex not found in PATH. Install winflexbison via choco.")
else:
flex_path = which("flex")
if not flex_path:
raise Exception("Flex not found in system PATH. Please install flex on Linux/macOS.")
flex_path = which("flex")
if not flex_path:
raise Exception("Flex not found in system PATH. Please install flex on Linux/macOS.")
tc.variables["FLEX_EXECUTABLE"] = flex_path.replace("\\", "\\\\")
tc.variables["FLEX_EXECUTABLE"] = flex_path
tc.generate()
def build(self):