diff options
Diffstat (limited to 'Modules/FindPerl.cmake')
-rw-r--r-- | Modules/FindPerl.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindPerl.cmake b/Modules/FindPerl.cmake index 65340b8..1af301d 100644 --- a/Modules/FindPerl.cmake +++ b/Modules/FindPerl.cmake @@ -27,3 +27,7 @@ ELSE (NOT PERL_EXECUTABLE) SET (PERL ${PERL_EXECUTABLE}) ENDIF (NOT PERL_EXECUTABLE) + +IF (NOT PERL_FOUND AND Perl_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find Perl") +ENDIF (NOT PERL_FOUND AND Perl_FIND_REQUIRED) |