Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@fb.com>2016-12-31 03:04:31 +0300
committerSoumith Chintala <soumith@fb.com>2016-12-31 03:04:31 +0300
commit6c33035bbea961ea90238085733f7631ec2a09f5 (patch)
treeace6b726a1ff6e209b8a2f26f4fa4443037be8a1
parent6f614794d0b6243183b199f89087115aac86aeec (diff)
add THNN_SO_VERSION
-rw-r--r--lib/THNN/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/THNN/CMakeLists.txt b/lib/THNN/CMakeLists.txt
index cb704b1..785f1b5 100644
--- a/lib/THNN/CMakeLists.txt
+++ b/lib/THNN/CMakeLists.txt
@@ -63,4 +63,12 @@ SET_TARGET_PROPERTIES(THNN PROPERTIES
IMPORT_PREFIX "lib")
TARGET_LINK_LIBRARIES(THNN TH)
+IF(NOT THNN_SO_VERSION)
+ SET(THNN_SO_VERSION 0)
+ENDIF(NOT THNN_SO_VERSION)
+MESSAGE(STATUS "THNN_SO_VERSION: ${THNN_SO_VERSION}")
+SET_TARGET_PROPERTIES(THNN PROPERTIES
+ VERSION ${THNN_SO_VERSION}
+ SOVERSION ${THNN_SO_VERSION})
+
INSTALL(TARGETS THNN LIBRARY DESTINATION ${THNN_INSTALL_LIB_SUBDIR})