aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2021-04-05 02:32:35 -0500
committerBrent Cook <busterb@gmail.com>2021-04-07 07:51:45 -0500
commit921c0675a25708d19e76aa8e3b48c4483a1a255d (patch)
treed68d125cdc968fd96cca6835fc347a2c8698a6ca /CMakeLists.txt
parent141f7528cb5610becd963d8c403c5b14afe73634 (diff)
downloadportable-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.txt11
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})
369endif() 369endif()
370 370
371if(NOT "${OPENSSLDIR}" STREQUAL "")
372 set(CONF_DIR "${OPENSSLDIR}")
373else()
374 set(CONF_DIR "${CMAKE_INSTALL_PREFIX}/etc/ssl")
375endif()
376
377if(ENABLE_LIBRESSL_INSTALL)
378 install(FILES cert.pem openssl.cnf x509v3.cnf DESTINATION ${CONF_DIR})
379 install(DIRECTORY DESTINATION ${CONF_DIR}/certs)
380endif(ENABLE_LIBRESSL_INSTALL)
381
371if(NOT TARGET uninstall) 382if(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"