aboutsummaryrefslogtreecommitdiff
path: root/crypto
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 /crypto
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 'crypto')
-rw-r--r--crypto/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index f8c5684..a2b4817 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -829,9 +829,13 @@ if (BUILD_SHARED)
829 ARCHIVE_OUTPUT_NAME crypto${CRYPTO_POSTFIX}) 829 ARCHIVE_OUTPUT_NAME crypto${CRYPTO_POSTFIX})
830 set_target_properties(crypto-shared PROPERTIES VERSION 830 set_target_properties(crypto-shared PROPERTIES VERSION
831 ${CRYPTO_VERSION} SOVERSION ${CRYPTO_MAJOR_VERSION}) 831 ${CRYPTO_VERSION} SOVERSION ${CRYPTO_MAJOR_VERSION})
832 install(TARGETS crypto crypto-shared DESTINATION lib) 832 if(ENABLE_LIBRESSL_INSTALL)
833 install(TARGETS crypto crypto-shared DESTINATION lib)
834 endif(ENABLE_LIBRESSL_INSTALL)
833else() 835else()
834 add_library(crypto STATIC ${CRYPTO_SRC}) 836 add_library(crypto STATIC ${CRYPTO_SRC})
835 install(TARGETS crypto DESTINATION lib) 837 if(ENABLE_LIBRESSL_INSTALL)
838 install(TARGETS crypto DESTINATION lib)
839 endif(ENABLE_LIBRESSL_INSTALL)
836endif() 840endif()
837 841