]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Try to fix linking issue
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Mar 2018 09:18:59 +0000 (09:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Mar 2018 09:18:59 +0000 (09:18 +0000)
contrib/torch/torch7/CMakeLists.txt
contrib/torch/torch7/lib/TH/CMakeLists.txt

index 7519e85d7df41affa7cd7dada5275ee9e9717e51..aa848905a43857fded1ed89ffd22a5020a8206a0 100644 (file)
@@ -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})
index 2b71bc3d085eb2da8cc1e5e6e485d5649ff547a6..c76d26e069663c4fd0ba4086470a7fdf13b375d1 100644 (file)
@@ -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)