From 4f20970ac6c0dc089b7d2a69b22afcb065fb4ff7 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 29 Oct 2024 15:27:34 +0100 Subject: [PATCH] cmake: use `CMAKE_INSTALL_SYSCONFDIR` Replace `${CMAKE_INSTALL_PREFIX}/etc` with `${CMAKE_INSTALL_SYSCONFDIR}`. It makes the install step honor the `--prefix` option. Fixes #1118 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 204cb1bbaa..0173bf854a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -449,10 +449,10 @@ if(OPENSSLDIR STREQUAL "") if(WIN32) set(OPENSSLDIR "C:/Windows/libressl/ssl") else() - set(OPENSSLDIR "${CMAKE_INSTALL_PREFIX}/etc/ssl") + set(OPENSSLDIR "${CMAKE_INSTALL_SYSCONFDIR}/ssl") endif() - set(CONF_DIR "${CMAKE_INSTALL_PREFIX}/etc/ssl") + set(CONF_DIR "${CMAKE_INSTALL_SYSCONFDIR}/ssl") else() set(CONF_DIR "${OPENSSLDIR}") endif()