CMake: Remove unnecessary IF DEFINED HOST_PERL check

The variable might be defined to HOST_PERL-NOTFOUND which will return
early instead of issuing an error.

Change-Id: Id49dfd0fec8f477dad9e816e6128e36059e68702
Pick-to: 6.2
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexandru Croitor 2021-09-07 10:57:33 +02:00
parent b919fc8fd0
commit 6d20630b06

View File

@ -1,7 +1,4 @@
function(qt_ensure_perl) function(qt_ensure_perl)
if(DEFINED HOST_PERL)
return()
endif()
find_program(HOST_PERL "perl" DOC "Perl binary") find_program(HOST_PERL "perl" DOC "Perl binary")
if (NOT HOST_PERL) if (NOT HOST_PERL)
message(FATAL_ERROR "Perl needs to be available to build Qt.") message(FATAL_ERROR "Perl needs to be available to build Qt.")