Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit b52bd2c

Browse files
author
Robert-André Mauchin
committed
chore: Install library to CMAKE_INSTALL_LIBDIR
Currently the library is installed in hardcoded /lib path. This patch use the standard GNUInstallDirs macros to install it in either lib or lib64, according to the user platform. Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
1 parent aad863d commit b52bd2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ find_package(Threads REQUIRED)
1515

1616
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
1717
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
18+
include("GNUInstallDirs")
1819

1920
if (DISABLE_AUTO_INGEST)
2021
add_definitions(-DDISABLE_AUTO_INGEST)
@@ -130,4 +131,5 @@ if (NOT DISABLE_FTL_APP)
130131
endif()
131132

132133
# Install rules
133-
install(TARGETS ftl DESTINATION lib)
134+
install(TARGETS ftl DESTINATION
135+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})

0 commit comments

Comments
 (0)