diff options
author | Soumith Chintala <soumith@fb.com> | 2016-12-31 02:56:59 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@fb.com> | 2016-12-31 02:56:59 +0300 |
commit | 92beda69d300ae220d119503632ca784181de0c5 (patch) | |
tree | b10d3f935b2c97715c05aa83ed68d6c594663613 | |
parent | 7c231aaa22759862c9145967add22940947e2f35 (diff) |
adding TH_SO_VERSION option
-rw-r--r-- | lib/TH/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/TH/CMakeLists.txt b/lib/TH/CMakeLists.txt index 25fb5d3..6efe110 100644 --- a/lib/TH/CMakeLists.txt +++ b/lib/TH/CMakeLists.txt @@ -150,9 +150,13 @@ if(BUILD_STATIC) ADD_LIBRARY(TH_static STATIC ${src}) endif() +IF(NOT TH_SO_VERSION) + SET(TH_SO_VERSION 0) +ENDIF(NOT TH_SO_VERSION) +MESSAGE(STATUS "TH_SO_VERSION: ${TH_SO_VERSION}") SET_TARGET_PROPERTIES(TH PROPERTIES - VERSION 0 - SOVERSION 0) + VERSION ${TH_SO_VERSION} + SOVERSION ${TH_SO_VERSION}) CHECK_C_SOURCE_RUNS(" #include <stdatomic.h> |