diff options
author | Brent Cook <busterb@gmail.com> | 2021-04-05 02:32:35 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2021-04-07 07:51:45 -0500 |
commit | 921c0675a25708d19e76aa8e3b48c4483a1a255d (patch) | |
tree | d68d125cdc968fd96cca6835fc347a2c8698a6ca /CMakeLists.txt | |
parent | 141f7528cb5610becd963d8c403c5b14afe73634 (diff) | |
download | portable-921c0675a25708d19e76aa8e3b48c4483a1a255d.tar.gz portable-921c0675a25708d19e76aa8e3b48c4483a1a255d.tar.bz2 portable-921c0675a25708d19e76aa8e3b48c4483a1a255d.zip |
Add '--enable-libtls-only' build option
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index eca97b3..4183499 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -368,6 +368,17 @@ if(NOT MSVC) | |||
368 | DESTINATION ${CMAKE_INSTALL_LIBDIR}) | 368 | DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
369 | endif() | 369 | endif() |
370 | 370 | ||
371 | if(NOT "${OPENSSLDIR}" STREQUAL "") | ||
372 | set(CONF_DIR "${OPENSSLDIR}") | ||
373 | else() | ||
374 | set(CONF_DIR "${CMAKE_INSTALL_PREFIX}/etc/ssl") | ||
375 | endif() | ||
376 | |||
377 | if(ENABLE_LIBRESSL_INSTALL) | ||
378 | install(FILES cert.pem openssl.cnf x509v3.cnf DESTINATION ${CONF_DIR}) | ||
379 | install(DIRECTORY DESTINATION ${CONF_DIR}/certs) | ||
380 | endif(ENABLE_LIBRESSL_INSTALL) | ||
381 | |||
371 | if(NOT TARGET uninstall) | 382 | if(NOT TARGET uninstall) |
372 | configure_file( | 383 | configure_file( |
373 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" | 384 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" |