Avoid checking the protoc availablity when crosscompiling


Move the protocolCompilerAvailableToRun check under the
SKIP_COMMAND_LINE_TESTS guard.

Pick-to: 6.8 6.9 6.10
Change-Id: Ibd2ce706e7d73d368a89f9f486f3f2fc0f59e7e4
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
commit76f8c2ffb8deee8a86efd39200405d72c3850106
parent6de39ba5eb25ceeb21923a8c85c9cf6ad7208326
authorAlexey Edelev <alexey.edelev@qt.io>
committerAlexey Edelev <alexey.edelev@qt.io>
commit timeTue, 9 Sep 2025 10:51:21 +0200