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:
parent
b919fc8fd0
commit
6d20630b06
@ -1,7 +1,4 @@
|
||||
function(qt_ensure_perl)
|
||||
if(DEFINED HOST_PERL)
|
||||
return()
|
||||
endif()
|
||||
find_program(HOST_PERL "perl" DOC "Perl binary")
|
||||
if (NOT HOST_PERL)
|
||||
message(FATAL_ERROR "Perl needs to be available to build Qt.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user