aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/torch/nn
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-21 11:07:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-21 11:41:06 +0100
commit43a0868d495ce58b1098b071dd3d7020138776c3 (patch)
treeb77d79a4e07202212dc702f7791cf760168bb7a4 /contrib/torch/nn
parenta55442e29e20b52ad4f6148c45664005898feaa7 (diff)
downloadrspamd-43a0868d495ce58b1098b071dd3d7020138776c3.tar.gz
rspamd-43a0868d495ce58b1098b071dd3d7020138776c3.zip
[Minor] Fix installation directory for shared libs
Diffstat (limited to 'contrib/torch/nn')
-rw-r--r--contrib/torch/nn/lib/CMakeLists.txt2
-rw-r--r--contrib/torch/nn/lib/THNN/CMakeLists.txt4
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/torch/nn/lib/CMakeLists.txt b/contrib/torch/nn/lib/CMakeLists.txt
index a8d1f9847..de04595f6 100644
--- a/contrib/torch/nn/lib/CMakeLists.txt
+++ b/contrib/torch/nn/lib/CMakeLists.txt
@@ -1,5 +1,5 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
CMAKE_POLICY(VERSION 2.6)
-SET(THNN_INSTALL_LIB_SUBDIR "${LUALIBDIR}")
+SET(THNN_INSTALL_LIB_SUBDIR "${RSPAMD_LIBDIR}")
SET(THNN_INSTALL_INCLUDE_SUBDIR "${Torch_INSTALL_INCLUDE_SUBDIR}")
ADD_SUBDIRECTORY(THNN) \ No newline at end of file
diff --git a/contrib/torch/nn/lib/THNN/CMakeLists.txt b/contrib/torch/nn/lib/THNN/CMakeLists.txt
index 914e512d7..00908a5b1 100644
--- a/contrib/torch/nn/lib/THNN/CMakeLists.txt
+++ b/contrib/torch/nn/lib/THNN/CMakeLists.txt
@@ -36,7 +36,7 @@ IF (WITH_OPENMP)
ENDIF (WITH_OPENMP)
SET(src init.c)
-ADD_LIBRARY(THNN MODULE init.c)
+ADD_LIBRARY(THNN SHARED init.c)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
### Torch packages supposes libraries prefix is "lib"
SET_TARGET_PROPERTIES(THNN PROPERTIES
@@ -44,4 +44,4 @@ SET_TARGET_PROPERTIES(THNN PROPERTIES
IMPORT_PREFIX "lib")
TARGET_LINK_LIBRARIES(THNN ${TH_LIBRARIES})
-INSTALL(TARGETS THNN DESTINATION ${LUALIBDIR})
+INSTALL(TARGETS THNN DESTINATION ${RSPAMD_LIBDIR})