[client] cmake: correctly detect non-gawk awks

Forgetting NAMES meant that cmake was searching for gawk only.
This commit is contained in:
Quantum 2021-10-09 19:36:26 -04:00 committed by Geoffrey McRae
parent e914e56c48
commit d60dcb718b

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}).")