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-11 16:36:03 -0500
commit9c9a9858e8a3f680f75225aff88237979466ee9a (patch)
treedc46831004c93c6078e72eb1b2795473f49663ec /ssl
parent90f851568acc951195e26b128ef514b2b18ebffe (diff)
downloadportable-9c9a9858e8a3f680f75225aff88237979466ee9a.tar.gz
portable-9c9a9858e8a3f680f75225aff88237979466ee9a.tar.bz2
portable-9c9a9858e8a3f680f75225aff88237979466ee9a.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 9aef592..65e872d 100644
--- a/ssl/CMakeLists.txt
+++ b/ssl/CMakeLists.txt
@@ -54,8 +54,13 @@ set(
54add_library(ssl-objects OBJECT ${SSL_SRC}) 54add_library(ssl-objects OBJECT ${SSL_SRC})
55set_property(TARGET ssl-objects PROPERTY POSITION_INDEPENDENT_CODE 1) 55set_property(TARGET ssl-objects PROPERTY POSITION_INDEPENDENT_CODE 1)
56add_library(ssl STATIC $<TARGET_OBJECTS:ssl-objects>) 56add_library(ssl STATIC $<TARGET_OBJECTS:ssl-objects>)
57add_library(ssl-shared SHARED $<TARGET_OBJECTS:ssl-objects>) 57set(SSL_TARGETS ssl)
58set_target_properties(ssl-shared PROPERTIES OUTPUT_NAME ssl)
59set_target_properties(ssl-shared PROPERTIES VERSION ${SSL_VERSION} SOVERSION ${SSL_MAJOR_VERSION})
60 58
61install(TARGETS ssl ssl-shared DESTINATION lib) 59if (BUILD_SHARED)
60 add_library(ssl-shared SHARED $<TARGET_OBJECTS:ssl-objects>)
61 set_target_properties(ssl-shared PROPERTIES OUTPUT_NAME ssl)
62 set_target_properties(ssl-shared PROPERTIES VERSION ${SSL_VERSION} SOVERSION ${SSL_MAJOR_VERSION})
63 set(SSL_TARGETS ${SSL_TARGETS} ssl-shared)
64endif()
65
66install(TARGETS ${SSL_TARGETS} DESTINATION lib)