diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-02 09:18:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-02 09:18:59 +0000 |
commit | 0d89c44f583be32d15e2c5e5a03c46f3a78d211c (patch) | |
tree | 8bca899cbda726bcb225b3478094fe157969ad2f /contrib | |
parent | ebf5a88da4b591342814c971e55ff2bf9051cdfb (diff) | |
download | rspamd-0d89c44f583be32d15e2c5e5a03c46f3a78d211c.tar.gz rspamd-0d89c44f583be32d15e2c5e5a03c46f3a78d211c.zip |
[Minor] Try to fix linking issue
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/torch/torch7/CMakeLists.txt | 1 | ||||
-rw-r--r-- | contrib/torch/torch7/lib/TH/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/contrib/torch/torch7/CMakeLists.txt b/contrib/torch/torch7/CMakeLists.txt index 7519e85d7..aa848905a 100644 --- a/contrib/torch/torch7/CMakeLists.txt +++ b/contrib/torch/torch7/CMakeLists.txt @@ -63,6 +63,7 @@ SET(luasrc init.lua File.lua Tensor.lua CmdLine.lua FFInterface.lua Tester.lua T ADD_TORCH_PACKAGE(torch "${src}" "${luasrc}") TARGET_LINK_LIBRARIES(torch luaT TH) +TARGET_LINK_LIBRARIES(torch ottery) IF(LUALIB) TARGET_LINK_LIBRARIES(torch ${LUALIB}) diff --git a/contrib/torch/torch7/lib/TH/CMakeLists.txt b/contrib/torch/torch7/lib/TH/CMakeLists.txt index 2b71bc3d0..c76d26e06 100644 --- a/contrib/torch/torch7/lib/TH/CMakeLists.txt +++ b/contrib/torch/torch7/lib/TH/CMakeLists.txt @@ -291,6 +291,8 @@ IF(NOT MSVC) TARGET_LINK_LIBRARIES(TH m) ENDIF(NOT MSVC) +TARGET_LINK_LIBRARIES(TH ottery) + # Is __thread supported? IF(NOT MSVC) CHECK_C_SOURCE_COMPILES("static __thread int x = 1; int main() { return x; }" C_HAS_THREAD) |