aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/torch/torch7/CMakeLists.txt1
-rw-r--r--contrib/torch/torch7/lib/TH/CMakeLists.txt2
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)