[client] cmake: correctly detect non-gawk awks

Forgetting NAMES meant that cmake was searching for gawk only.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-10-14 17:01:37 +11:00
1 parent e914e56c48
commit d60dcb718b
1 file changed
+1 -1
+1 -1
View File
@@ -11,7 +11,7 @@ pkg_check_modules(RENDERER_EGL_OPT IMPORTED_TARGET
wayland-egl
)
find_program(AWK gawk mawk original-awk awk)
find_program(AWK NAMES gawk mawk original-awk awk)
if(AWK MATCHES ".+-NOTFOUND")
message(FATAL_ERROR "FATAL: some known version of awk couldn't be found (${AWK}).")