summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-07 08:14:04 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-07 08:14:04 +0100
commitbe8b130d14166145787f4e8e9b194b98c98c873d (patch)
tree222e8db4421b5ebdfb5fcd124eefdb40c6d174b5 /CMakeLists.txt
parent3f97820a4301e3062561e2a6339c111a208fb4fa (diff)
downloadrspamd-be8b130d14166145787f4e8e9b194b98c98c873d.tar.gz
rspamd-be8b130d14166145787f4e8e9b194b98c98c873d.zip
[Minor] Allow to detect torch support from Lua
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c5f874375..82498acdf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1267,6 +1267,7 @@ IF(ENABLE_TORCH MATCHES "ON")
ADD_SUBDIRECTORY(contrib/torch/paths)
ADD_SUBDIRECTORY(contrib/torch/torch7)
ADD_SUBDIRECTORY(contrib/torch/nn)
+ SET(WITH_TORCH 1)
ELSE()
MESSAGE(FATAL_ERROR "Cannot enable torch without luajit")
ENDIF()