]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix install path for torch libpaths
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 22 Jul 2017 09:19:45 +0000 (10:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 22 Jul 2017 09:19:45 +0000 (10:19 +0100)
contrib/torch/paths/CMakeLists.txt

index c16abe13d2599906f29c7df860e5ebfdd760ad2f..c578b66e99f705cadc2e93845936173ebe5177d2 100644 (file)
@@ -35,7 +35,7 @@ IF(MSVC)
   ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE=1)
 ENDIF(MSVC)
 
-ADD_LIBRARY("paths" MODULE ${src})
+ADD_LIBRARY("paths" SHARED ${src})
 SET_TARGET_PROPERTIES("paths" PROPERTIES
   PREFIX "lib"
   IMPORT_PREFIX "lib")
@@ -47,8 +47,8 @@ ENDIF()
 
 INSTALL(FILES ${luasrc} DESTINATION ${LUALIBDIR}/paths)
 INSTALL(TARGETS paths
-  LIBRARY DESTINATION ${LUALIBDIR}
-  RUNTIME DESTINATION ${LUALIBDIR})
+  LIBRARY DESTINATION ${RSPAMD_LIBDIR}
+  RUNTIME DESTINATION ${RSPAMD_LIBDIR})
 
 IF(LUALIB)
   TARGET_LINK_LIBRARIES(paths ${LUALIB})