aboutsummaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authord3x0r <d3x0r@users.noreply.github.com>2017-07-06 02:09:44 -0700
committerd3x0r <d3x0r@users.noreply.github.com>2017-07-06 02:09:44 -0700
commit2557dd7439806448ad41b7bc5f175f4ed4f74d9c (patch)
treeaeec866073e16350de88b84b05d11b7578c3db1c /ssl
parent728bda183018cbc9736f03d4f21d2b4a2585e83d (diff)
downloadportable-2557dd7439806448ad41b7bc5f175f4ed4f74d9c.tar.gz
portable-2557dd7439806448ad41b7bc5f175f4ed4f74d9c.tar.bz2
portable-2557dd7439806448ad41b7bc5f175f4ed4f74d9c.zip
Add option LIBRESSL_SKIP_INSTALL
Internally LIBRESSL_SKIP_INSTALL, if not set becomes ENABLE_LIBRESSL_INSTALL so this by default is enabled. defining LIBRESSL_SKIP_INSTALL before hand will disable all install() rules. This is useful if another project includes and links to this statically. I chose to add a prefix to avoid potential name collision because the options are cached globally. If the installation is skipped, maybe it should also disable building apps? I didn't do that.
Diffstat (limited to 'ssl')
-rw-r--r--ssl/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt
index bc2fea4..0e1c326 100644
--- a/ssl/CMakeLists.txt
+++ b/ssl/CMakeLists.txt
@@ -60,8 +60,12 @@ if (BUILD_SHARED)
60 ARCHIVE_OUTPUT_NAME ssl${SSL_POSTFIX}) 60 ARCHIVE_OUTPUT_NAME ssl${SSL_POSTFIX})
61 set_target_properties(ssl-shared PROPERTIES VERSION ${SSL_VERSION} 61 set_target_properties(ssl-shared PROPERTIES VERSION ${SSL_VERSION}
62 SOVERSION ${SSL_MAJOR_VERSION}) 62 SOVERSION ${SSL_MAJOR_VERSION})
63 install(TARGETS ssl ssl-shared DESTINATION lib) 63 if(ENABLE_LIBRESSL_INSTALL)
64 install(TARGETS ssl ssl-shared DESTINATION lib)
65 endif(ENABLE_LIBRESSL_INSTALL)
64else() 66else()
65 add_library(ssl STATIC ${SSL_SRC}) 67 add_library(ssl STATIC ${SSL_SRC})
66 install(TARGETS ssl DESTINATION lib) 68 if(ENABLE_LIBRESSL_INSTALL)
69 install(TARGETS ssl DESTINATION lib)
70 endif(ENABLE_LIBRESSL_INSTALL)
67endif() 71endif()