diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2017-01-17 21:27:41 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2017-01-18 00:34:20 +0900 |
commit | 3b8cf47307c65f6adfe20e13e85e074a8e5cc044 (patch) | |
tree | 67d179a13a60379c02b4ea3a52d29dbaa8a706e3 /ssl | |
parent | 3b2560feb355e708a59ecfb224932810687a75ad (diff) | |
download | portable-3b8cf47307c65f6adfe20e13e85e074a8e5cc044.tar.gz portable-3b8cf47307c65f6adfe20e13e85e074a8e5cc044.tar.bz2 portable-3b8cf47307c65f6adfe20e13e85e074a8e5cc044.zip |
Add export symbol support to CMake
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index d511c8e..67115e4 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
@@ -52,9 +52,8 @@ add_library(ssl-objects OBJECT ${SSL_SRC}) | |||
52 | if (BUILD_SHARED) | 52 | if (BUILD_SHARED) |
53 | add_library(ssl STATIC $<TARGET_OBJECTS:ssl-objects>) | 53 | add_library(ssl STATIC $<TARGET_OBJECTS:ssl-objects>) |
54 | add_library(ssl-shared SHARED $<TARGET_OBJECTS:ssl-objects>) | 54 | add_library(ssl-shared SHARED $<TARGET_OBJECTS:ssl-objects>) |
55 | export_symbol(ssl-shared ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) | ||
55 | if (WIN32) | 56 | if (WIN32) |
56 | target_sources(ssl-shared PRIVATE | ||
57 | ${CMAKE_CURRENT_SOURCE_DIR}/ssl.def) | ||
58 | target_link_libraries(ssl-shared crypto-shared Ws2_32.lib) | 57 | target_link_libraries(ssl-shared crypto-shared Ws2_32.lib) |
59 | set(SSL_POSTFIX -${SSL_MAJOR_VERSION}) | 58 | set(SSL_POSTFIX -${SSL_MAJOR_VERSION}) |
60 | endif() | 59 | endif() |