diff options
| author | Pierre Wendling <pierre.wendling.4@gmail.com> | 2023-08-15 11:08:06 -0400 |
|---|---|---|
| committer | Pierre Wendling <pierre.wendling.4@gmail.com> | 2023-08-19 12:16:16 -0400 |
| commit | 86a6826fef085618e506ea8eedb4d688646460bf (patch) | |
| tree | 3862244de3d99de8b5378eea2a2b5d36075ce029 | |
| parent | 31391735689077c238623591655753160168ad38 (diff) | |
| download | portable-86a6826fef085618e506ea8eedb4d688646460bf.tar.gz portable-86a6826fef085618e506ea8eedb4d688646460bf.tar.bz2 portable-86a6826fef085618e506ea8eedb4d688646460bf.zip | |
Move `LibreSSL/` to `LIBRESSL_INSTALL_CMAKEDIR`.
This allows users to install the CMake configs without forcing a
`LibreSSL` directory after `LIBRESSL_INSTALL_CMAKEDIR`.
| -rw-r--r-- | CMakeLists.txt | 6 | ||||
| -rw-r--r-- | crypto/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | ssl/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | tls/CMakeLists.txt | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e26e47..4b34765 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -39,7 +39,7 @@ option(ENABLE_ASM "Enable assembly" ON) | |||
| 39 | option(ENABLE_EXTRATESTS "Enable extra tests that may be unreliable on some platforms" OFF) | 39 | option(ENABLE_EXTRATESTS "Enable extra tests that may be unreliable on some platforms" OFF) |
| 40 | option(ENABLE_NC "Enable installing TLS-enabled nc(1)" OFF) | 40 | option(ENABLE_NC "Enable installing TLS-enabled nc(1)" OFF) |
| 41 | set(OPENSSLDIR ${OPENSSLDIR} CACHE PATH "Set the default openssl directory" FORCE) | 41 | set(OPENSSLDIR ${OPENSSLDIR} CACHE PATH "Set the default openssl directory" FORCE) |
| 42 | set(LIBRESSL_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake" CACHE STRING "Installation directory for the CMake targets") | 42 | set(LIBRESSL_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/LibreSSL" CACHE STRING "Installation directory for the CMake targets") |
| 43 | 43 | ||
| 44 | option(USE_STATIC_MSVC_RUNTIMES "Use /MT instead of /MD in MSVC" OFF) | 44 | option(USE_STATIC_MSVC_RUNTIMES "Use /MT instead of /MD in MSVC" OFF) |
| 45 | if(USE_STATIC_MSVC_RUNTIMES) | 45 | if(USE_STATIC_MSVC_RUNTIMES) |
| @@ -463,12 +463,12 @@ if(ENABLE_LIBRESSL_INSTALL) | |||
| 463 | "${CMAKE_CURRENT_LIST_DIR}/LibreSSLConfig.cmake.in" | 463 | "${CMAKE_CURRENT_LIST_DIR}/LibreSSLConfig.cmake.in" |
| 464 | "${CMAKE_CURRENT_BINARY_DIR}/install-config/LibreSSLConfig.cmake" | 464 | "${CMAKE_CURRENT_BINARY_DIR}/install-config/LibreSSLConfig.cmake" |
| 465 | PATH_VARS INCLUDE_DIRECTORY | 465 | PATH_VARS INCLUDE_DIRECTORY |
| 466 | INSTALL_DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}/LibreSSL" | 466 | INSTALL_DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}" |
| 467 | ) | 467 | ) |
| 468 | install(FILES | 468 | install(FILES |
| 469 | "${CMAKE_BINARY_DIR}/install-config/LibreSSLConfig.cmake" | 469 | "${CMAKE_BINARY_DIR}/install-config/LibreSSLConfig.cmake" |
| 470 | "${CMAKE_BINARY_DIR}/LibreSSLConfigVersion.cmake" | 470 | "${CMAKE_BINARY_DIR}/LibreSSLConfigVersion.cmake" |
| 471 | DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}/LibreSSL" | 471 | DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}" |
| 472 | ) | 472 | ) |
| 473 | endif() | 473 | endif() |
| 474 | 474 | ||
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 597ffef..6ff46c8 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
| @@ -1025,7 +1025,7 @@ if(ENABLE_LIBRESSL_INSTALL) | |||
| 1025 | EXPORT Crypto-target | 1025 | EXPORT Crypto-target |
| 1026 | FILE "LibreSSL-Crypto.cmake" | 1026 | FILE "LibreSSL-Crypto.cmake" |
| 1027 | NAMESPACE LibreSSL:: | 1027 | NAMESPACE LibreSSL:: |
| 1028 | DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}/LibreSSL" | 1028 | DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}" |
| 1029 | ) | 1029 | ) |
| 1030 | endif(ENABLE_LIBRESSL_INSTALL) | 1030 | endif(ENABLE_LIBRESSL_INSTALL) |
| 1031 | 1031 | ||
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index 16ef277..9ba2a9e 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
| @@ -126,7 +126,7 @@ if(ENABLE_LIBRESSL_INSTALL) | |||
| 126 | EXPORT SSL-target | 126 | EXPORT SSL-target |
| 127 | FILE "LibreSSL-SSL.cmake" | 127 | FILE "LibreSSL-SSL.cmake" |
| 128 | NAMESPACE LibreSSL:: | 128 | NAMESPACE LibreSSL:: |
| 129 | DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}/LibreSSL" | 129 | DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}" |
| 130 | ) | 130 | ) |
| 131 | endif(ENABLE_LIBRESSL_INSTALL) | 131 | endif(ENABLE_LIBRESSL_INSTALL) |
| 132 | 132 | ||
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index a8f29af..59deee3 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt | |||
| @@ -93,7 +93,7 @@ if(ENABLE_LIBRESSL_INSTALL) | |||
| 93 | EXPORT TLS-target | 93 | EXPORT TLS-target |
| 94 | FILE "LibreSSL-TLS.cmake" | 94 | FILE "LibreSSL-TLS.cmake" |
| 95 | NAMESPACE LibreSSL:: | 95 | NAMESPACE LibreSSL:: |
| 96 | DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}/LibreSSL" | 96 | DESTINATION "${LIBRESSL_INSTALL_CMAKEDIR}" |
| 97 | ) | 97 | ) |
| 98 | endif(ENABLE_LIBRESSL_INSTALL) | 98 | endif(ENABLE_LIBRESSL_INSTALL) |
| 99 | 99 | ||
