diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-01 15:13:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-01 15:13:04 +0100 |
commit | 891b250b452f8e1963a99931f241ac75e34d0281 (patch) | |
tree | ab56b822aca3cc6d02a3c9afbe8ca2f6d1c0381f /CMakeLists.txt | |
parent | 38691d998d019ac0fba95720c337e3f9badf55c4 (diff) | |
download | rspamd-891b250b452f8e1963a99931f241ac75e34d0281.tar.gz rspamd-891b250b452f8e1963a99931f241ac75e34d0281.zip |
[Project] Remove torch
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 00822aecb..2f455d941 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,6 @@ OPTION(ENABLE_JEMALLOC "Build rspamd with jemalloc allocator [default: OFF] OPTION(ENABLE_COVERAGE "Build rspamd with code coverage options [default: OFF]" OFF) OPTION(ENABLE_FULL_DEBUG "Build rspamd with all possible debug [default: OFF]" OFF) OPTION(ENABLE_UTILS "Build rspamd internal utils [default: OFF]" OFF) -OPTION(ENABLE_TORCH "Install torch7 with Rspamd [default: ON]" ON) OPTION(ENABLE_LIBUNWIND "Use libunwind to print crash traces [default: OFF]" OFF) OPTION(ENABLE_LUA_TRACE "Trace all Lua C API invocations [default: OFF]" OFF) @@ -1232,19 +1231,6 @@ IF(ENABLE_CLANG_PLUGIN MATCHES "ON") ADD_SUBDIRECTORY(clang-plugin) ENDIF() -IF(ENABLE_TORCH MATCHES "ON") - IF(WITH_LUAJIT) - ADD_SUBDIRECTORY(contrib/lua-torch/paths) - ADD_SUBDIRECTORY(contrib/lua-torch/torch7) - ADD_SUBDIRECTORY(contrib/lua-torch/nn) - ADD_SUBDIRECTORY(contrib/lua-torch/optim) - ADD_SUBDIRECTORY(contrib/lua-torch/decisiontree) - SET(WITH_TORCH 1) - ELSE() - MESSAGE(FATAL_ERROR "Cannot enable torch without luajit") - ENDIF() -ENDIF() - ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(test) ADD_SUBDIRECTORY(utils) @@ -1337,10 +1323,6 @@ INSTALL(FILES "contrib/lua-tableshape/tableshape.lua" DESTINATION ${LUALIBDIR}) INSTALL(FILES "contrib/lua-lupa/lupa.lua" DESTINATION ${LUALIBDIR}) INSTALL(FILES "contrib/lua-lpeg/lpegre.lua" DESTINATION ${LUALIBDIR}) -IF(ENABLE_TORCH MATCHES "ON") - INSTALL(FILES "contrib/lua-moses/moses.lua" DESTINATION ${LUALIBDIR}) -ENDIF() - # systemd unit IF(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND WANT_SYSTEMD_UNITS MATCHES "ON") INSTALL(FILES "rspamd.service" DESTINATION ${SYSTEMDDIR}) |