ENG-21473: Fix installations without sccache (#24453)

This commit is contained in:
Marko Vejnovic
2025-11-06 17:26:28 -08:00
committed by GitHub
parent 267be9a54a
commit 75f271a306

View File

@@ -310,7 +310,7 @@ function(find_command)
${FIND_VALIDATOR}
)
if(NOT FIND_REQUIRED STREQUAL "OFF" AND ${FIND_VARIABLE} MATCHES "NOTFOUND")
if(FIND_REQUIRED AND ${FIND_VARIABLE} MATCHES "NOTFOUND")
set(error "Command not found: \"${FIND_NAME}\"")
if(FIND_VERSION)