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()