From 7560e8700e2c72cd4a11cfe818907bd9da76e800 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 31 Dec 2024 06:42:51 +0100 Subject: cmake-parser: improve portability --- tools/cmake-parser.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/cmake-parser.awk b/tools/cmake-parser.awk index 43c5f2c..23329de 100644 --- a/tools/cmake-parser.awk +++ b/tools/cmake-parser.awk @@ -75,7 +75,7 @@ function line_ending() { # it doesn't seem to be worth the effort. function expand(s, v) { v = s - while (match(v, /\\*[$](|ENV|CACHE)[{]/)) { + while (match(v, /\\*[$](ENV|CACHE)?[{]/)) { if (index(substr(v, RSTART), "$") % 2 != 0) { warning("variable expansion is not supported: " s) return s -- cgit v1.2.3-70-g09d2