diff options
author | Jeff Davey <jdavey@apple.com> | 2015-08-18 13:20:19 -0600 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-08-28 13:17:12 -0500 |
commit | 9caf754a59f166bcf62a2cf84f82720ae110ab74 (patch) | |
tree | 4065163ca9a357bb78d3357ad4417461ea4eeeef /tls | |
parent | 2f2f08e60c8ade1840c2ff31ec36e934ef6d03ec (diff) | |
download | portable-9caf754a59f166bcf62a2cf84f82720ae110ab74.tar.gz portable-9caf754a59f166bcf62a2cf84f82720ae110ab74.tar.bz2 portable-9caf754a59f166bcf62a2cf84f82720ae110ab74.zip |
Add install targets and shared libraries to CMake
Diffstat (limited to 'tls')
-rw-r--r-- | tls/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index 3e61844..7c8cf21 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt | |||
@@ -19,4 +19,11 @@ if(NOT HAVE_STRCASECMP) | |||
19 | set(TLS_SRC ${TLS_SRC} strsep.c) | 19 | set(TLS_SRC ${TLS_SRC} strsep.c) |
20 | endif() | 20 | endif() |
21 | 21 | ||
22 | add_library(tls ${TLS_SRC}) | 22 | add_library(tls-objects OBJECT ${TLS_SRC}) |
23 | set_property(TARGET tls-objects PROPERTY POSITION_INDEPENDENT_CODE 1) | ||
24 | add_library(tls STATIC $<TARGET_OBJECTS:tls-objects>) | ||
25 | add_library(tls-shared SHARED $<TARGET_OBJECTS:tls-objects>) | ||
26 | set_target_properties(tls-shared PROPERTIES OUTPUT_NAME tls) | ||
27 | set_target_properties(tls-shared PROPERTIES VERSION ${TLS_VERSION} SOVERSION ${TLS_MAJOR_VERSION}) | ||
28 | |||
29 | install(TARGETS tls tls-shared DESTINATION lib) | ||