Skip to content

Commit 4f20970

Browse files
committed
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
1 parent eb6aaeb commit 4f20970

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,10 @@ if(OPENSSLDIR STREQUAL "")
449449
if(WIN32)
450450
set(OPENSSLDIR "C:/Windows/libressl/ssl")
451451
else()
452-
set(OPENSSLDIR "${CMAKE_INSTALL_PREFIX}/etc/ssl")
452+
set(OPENSSLDIR "${CMAKE_INSTALL_SYSCONFDIR}/ssl")
453453
endif()
454454

455-
set(CONF_DIR "${CMAKE_INSTALL_PREFIX}/etc/ssl")
455+
set(CONF_DIR "${CMAKE_INSTALL_SYSCONFDIR}/ssl")
456456
else()
457457
set(CONF_DIR "${OPENSSLDIR}")
458458
endif()

0 commit comments

Comments
 (0)