From 9097fc043e38a27241381e383b97e00254fbf711 Mon Sep 17 00:00:00 2001 From: "cebka@lenovo-laptop" Date: Wed, 3 Mar 2010 19:34:51 +0300 Subject: * New Mail::Rspamd::Client things TODO: - improve interaction with rspamc - improve documentation - test all features - test clustering - write CGI front-end --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 22d2c21f0..dc6158b08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -489,14 +489,13 @@ IF(PERL_EXECUTABLE) COMMAND ${PERL_EXECUTABLE} ./Makefile.PL WORKING_DIRECTORY perl) CONFIGURE_FILE(perl/Makefile.PL.in perl/Makefile.PL) -ENDIF(PERL_EXECUTABLE) -IF(ENABLE_PERL MATCHES "ON") - ADD_CUSTOM_TARGET(perlxs + ADD_CUSTOM_TARGET(perlmodule COMMAND make DEPENDS perl/Makefile WORKING_DIRECTORY perl VERBATIM) -ENDIF(ENABLE_PERL MATCHES "ON") + +ENDIF(PERL_EXECUTABLE) CONFIGURE_FILE(config.h.in src/config.h) CONFIGURE_FILE(rspamc.pl.in rspamc.pl @ONLY) @@ -520,6 +519,9 @@ IF(ENABLE_PERL MATCHES "ON") ADD_DEPENDENCIES(rspamd perlxs ${LEX_OUTPUT} ${YACC_OUTPUT}) ENDIF(ENABLE_PERL MATCHES "ON") +IF(PERL_EXECUTABLE) + ADD_DEPENDENCIES(rspamd perlmodule) +ENDIF(PERL_EXECUTABLE) IF(ENABLE_LUA MATCHES "ON") TARGET_LINK_LIBRARIES(rspamd rspamd_lua) -- cgit v1.2.3