diff options
author | Brent Cook <bcook@openbsd.org> | 2015-09-07 01:05:33 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-09-07 01:05:33 -0500 |
commit | ca56c332e3356118441c955e690f6727a9928b69 (patch) | |
tree | 4df1dc6d552b44dea1cca3d94c0c4a30d66c8218 /ssl | |
parent | 4078416c36124e86275b093519f7c0d772ee25b8 (diff) | |
download | portable-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.txt | 13 |
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( | |||
53 | add_library(ssl-objects OBJECT ${SSL_SRC}) | 53 | add_library(ssl-objects OBJECT ${SSL_SRC}) |
54 | set_property(TARGET ssl-objects PROPERTY POSITION_INDEPENDENT_CODE 1) | 54 | set_property(TARGET ssl-objects PROPERTY POSITION_INDEPENDENT_CODE 1) |
55 | add_library(ssl STATIC $<TARGET_OBJECTS:ssl-objects>) | 55 | add_library(ssl STATIC $<TARGET_OBJECTS:ssl-objects>) |
56 | add_library(ssl-shared SHARED $<TARGET_OBJECTS:ssl-objects>) | 56 | set(SSL_TARGETS ssl) |
57 | set_target_properties(ssl-shared PROPERTIES OUTPUT_NAME ssl) | ||
58 | set_target_properties(ssl-shared PROPERTIES VERSION ${SSL_VERSION} SOVERSION ${SSL_MAJOR_VERSION}) | ||
59 | 57 | ||
60 | install(TARGETS ssl ssl-shared DESTINATION lib) | 58 | if (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) | ||
63 | endif() | ||
64 | |||
65 | install(TARGETS ${SSL_TARGETS} DESTINATION lib) | ||