diff options
author | Soumith Chintala <soumith@gmail.com> | 2016-08-12 17:55:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-12 17:55:20 +0300 |
commit | 1dfc6e4583e1295c9cfad19bc570d6beec13430a (patch) | |
tree | 1ecf03bad97636ed1261078f6a128c8d671ff671 | |
parent | fd38e3036f4f85ee8cba0983f8097780a41bf7cf (diff) | |
parent | c9b29c2ba226bc203ca46d5e1307df498f5e34d0 (diff) |
Merge pull request #738 from CDLuminate/cmake-add-soversion-for-TH
cmake: add soversion for libTH
-rw-r--r-- | lib/TH/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/TH/CMakeLists.txt b/lib/TH/CMakeLists.txt index 551ea50..420bbf3 100644 --- a/lib/TH/CMakeLists.txt +++ b/lib/TH/CMakeLists.txt @@ -137,6 +137,10 @@ if(BUILD_STATIC) ADD_LIBRARY(TH_static STATIC ${src}) endif() +SET_TARGET_PROPERTIES(TH PROPERTIES + VERSION 0 + SOVERSION 0) + CHECK_C_SOURCE_RUNS(" #include <stdatomic.h> int main() |