aboutsummaryrefslogtreecommitdiff
path: root/apps/openssl
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2017-07-09 05:06:06 -0500
committerBrent Cook <bcook@openbsd.org>2017-07-09 05:06:06 -0500
commit0dbae37735a395e3c378ac944842e359f8087d41 (patch)
tree18aaf9fa1665455886fc171edbb8857ef5c35a21 /apps/openssl
parentc18852f650a3cb258e10222695a31ed5c929ab23 (diff)
parent0e82f22d16dc4c45bd45f9a994a30fc7435d430b (diff)
downloadportable-0dbae37735a395e3c378ac944842e359f8087d41.tar.gz
portable-0dbae37735a395e3c378ac944842e359f8087d41.tar.bz2
portable-0dbae37735a395e3c378ac944842e359f8087d41.zip
Land #324, Add option LIBRESSL_SKIP_INSTALL
Diffstat (limited to 'apps/openssl')
-rw-r--r--apps/openssl/CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/openssl/CMakeLists.txt b/apps/openssl/CMakeLists.txt
index 2e47840..71fbd63 100644
--- a/apps/openssl/CMakeLists.txt
+++ b/apps/openssl/CMakeLists.txt
@@ -76,13 +76,17 @@ endif()
76add_executable(openssl ${OPENSSL_SRC}) 76add_executable(openssl ${OPENSSL_SRC})
77target_link_libraries(openssl ${OPENSSL_LIBS}) 77target_link_libraries(openssl ${OPENSSL_LIBS})
78 78
79install(TARGETS openssl DESTINATION ${CMAKE_INSTALL_BINDIR}) 79if(ENABLE_LIBRESSL_INSTALL)
80install(FILES openssl.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) 80 install(TARGETS openssl DESTINATION ${CMAKE_INSTALL_BINDIR})
81 install(FILES openssl.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
82endif(ENABLE_LIBRESSL_INSTALL)
81 83
82if(NOT "${OPENSSLDIR}" STREQUAL "") 84if(NOT "${OPENSSLDIR}" STREQUAL "")
83 set(CONF_DIR "${OPENSSLDIR}") 85 set(CONF_DIR "${OPENSSLDIR}")
84else() 86else()
85 set(CONF_DIR "${CMAKE_INSTALL_PREFIX}/etc/ssl") 87 set(CONF_DIR "${CMAKE_INSTALL_PREFIX}/etc/ssl")
86endif() 88endif()
87install(FILES cert.pem openssl.cnf x509v3.cnf DESTINATION ${CONF_DIR}) 89if(ENABLE_LIBRESSL_INSTALL)
88install(DIRECTORY DESTINATION ${CONF_DIR}/cert) 90 install(FILES cert.pem openssl.cnf x509v3.cnf DESTINATION ${CONF_DIR})
91 install(DIRECTORY DESTINATION ${CONF_DIR}/cert)
92endif(ENABLE_LIBRESSL_INSTALL)