aboutsummaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-09-07 01:05:33 -0500
committerBrent Cook <bcook@openbsd.org>2015-09-07 01:05:33 -0500
commitca56c332e3356118441c955e690f6727a9928b69 (patch)
tree4df1dc6d552b44dea1cca3d94c0c4a30d66c8218 /ssl
parent4078416c36124e86275b093519f7c0d772ee25b8 (diff)
downloadportable-ca56c332e3356118441c955e690f6727a9928b69.tar.gz
portable-ca56c332e3356118441c955e690f6727a9928b69.tar.bz2
portable-ca56c332e3356118441c955e690f6727a9928b69.zip
disable shared CMake builds for OS X / Windows for now
Diffstat (limited to 'ssl')
-rw-r--r--ssl/CMakeLists.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt
index f227213..7d1140e 100644
--- a/ssl/CMakeLists.txt
+++ b/ssl/CMakeLists.txt
@@ -53,8 +53,13 @@ set(
53add_library(ssl-objects OBJECT ${SSL_SRC}) 53add_library(ssl-objects OBJECT ${SSL_SRC})
54set_property(TARGET ssl-objects PROPERTY POSITION_INDEPENDENT_CODE 1) 54set_property(TARGET ssl-objects PROPERTY POSITION_INDEPENDENT_CODE 1)
55add_library(ssl STATIC $<TARGET_OBJECTS:ssl-objects>) 55add_library(ssl STATIC $<TARGET_OBJECTS:ssl-objects>)
56add_library(ssl-shared SHARED $<TARGET_OBJECTS:ssl-objects>) 56set(SSL_TARGETS ssl)
57set_target_properties(ssl-shared PROPERTIES OUTPUT_NAME ssl)
58set_target_properties(ssl-shared PROPERTIES VERSION ${SSL_VERSION} SOVERSION ${SSL_MAJOR_VERSION})
59 57
60install(TARGETS ssl ssl-shared DESTINATION lib) 58if (BUILD_SHARED)
59 add_library(ssl-shared SHARED $<TARGET_OBJECTS:ssl-objects>)
60 set_target_properties(ssl-shared PROPERTIES OUTPUT_NAME ssl)
61 set_target_properties(ssl-shared PROPERTIES VERSION ${SSL_VERSION} SOVERSION ${SSL_MAJOR_VERSION})
62 set(SSL_TARGETS ${SSL_TARGETS} ssl-shared)
63endif()
64
65install(TARGETS ${SSL_TARGETS} DESTINATION lib)