]> source.dussan.org Git - rspamd.git/commitdiff
Perl is merely needed when snowball is enabled
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 12 Nov 2015 14:34:07 +0000 (14:34 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 12 Nov 2015 14:34:07 +0000 (14:34 +0000)
CMakeLists.txt

index f6b916f1eb5abe66a10a9e171898be30774faf2b..a752dd0c2715ecb6eacaacdd93adf031644de5ad 100644 (file)
@@ -151,7 +151,9 @@ INCLUDE(CheckCCompilerFlag)
 INCLUDE(CMakeParseArguments)
 
 FIND_PACKAGE(PkgConfig REQUIRED)
-FIND_PACKAGE(Perl REQUIRED)
+IF (ENABLE_SNOWBALL MATCHES "ON")
+       FIND_PACKAGE(Perl REQUIRED)
+ENDIF()
 
 ############################# MACRO SECTION #############################################