From 0090edbae4da654d8cbebb3291cb598ea2f417c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20L=C3=A4hteenm=C3=A4ki?= Date: Sat, 15 Apr 2023 15:12:48 +0300 Subject: [PATCH] CMakeLists.txt: fix lib install path For example on Fedora the library should be installed to lib64. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ef2d62..f4a53d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,8 @@ ENDIF() INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}") ADD_LIBRARY(${TARGET} SHARED ${SOURCES} ${HEADERS}) -INSTALL(TARGETS ${TARGET} DESTINATION lib) +INCLUDE(GNUInstallDirs) +INSTALL(TARGETS ${TARGET} DESTINATION ${CMAKE_INSTALL_LIBDIR}) INSTALL(FILES ${HEADERS} DESTINATION include/irc) IF (LIBTLS_FOUND)