diff options
| author | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2026-08-01 08:02:48 +0900 |
|---|---|---|
| committer | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2026-08-01 08:07:50 +0900 |
| commit | 07c4326f0b6f9016dfc0e323033ce99b9d81d4f8 (patch) | |
| tree | 3ea509cd9d10dfdfd06baf32e07b7f44c2691321 | |
| parent | 16311de70c9a1c6e6f1fc59688153b06342640de (diff) | |
| download | portable-07c4326f0b6f9016dfc0e323033ce99b9d81d4f8.tar.gz portable-07c4326f0b6f9016dfc0e323033ce99b9d81d4f8.tar.bz2 portable-07c4326f0b6f9016dfc0e323033ce99b9d81d4f8.zip | |
cmake: use full sysconf path for OPENSSLDIR
CMAKE_INSTALL_SYSCONFDIR is relative to the install prefix by default.
Using it for OPENSSLDIR causes TLS_DEFAULT_CA_FILE to be set to the
relative path `etc/ssl/cert.pem`.
Use CMAKE_INSTALL_FULL_SYSCONFDIR for the runtime path while retaining
CMAKE_INSTALL_SYSCONFDIR for the install destination.
Fix #1346
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cae3cb9..98a0299 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -520,7 +520,7 @@ if(OPENSSLDIR STREQUAL "") | |||
| 520 | if(WIN32) | 520 | if(WIN32) |
| 521 | set(OPENSSLDIR "C:/Windows/libressl/ssl") | 521 | set(OPENSSLDIR "C:/Windows/libressl/ssl") |
| 522 | else() | 522 | else() |
| 523 | set(OPENSSLDIR "${CMAKE_INSTALL_SYSCONFDIR}/ssl") | 523 | set(OPENSSLDIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/ssl") |
| 524 | endif() | 524 | endif() |
| 525 | 525 | ||
| 526 | set(CONF_DIR "${CMAKE_INSTALL_SYSCONFDIR}/ssl") | 526 | set(CONF_DIR "${CMAKE_INSTALL_SYSCONFDIR}/ssl") |
