From b52bd2c14ba449936cc084d1fe809de6843b9671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Tue, 2 Apr 2019 20:15:09 +0200 Subject: [PATCH] chore: Install library to CMAKE_INSTALL_LIBDIR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef616e9..8171f87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ find_package(Threads REQUIRED) set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) +include("GNUInstallDirs") if (DISABLE_AUTO_INGEST) add_definitions(-DDISABLE_AUTO_INGEST) @@ -130,4 +131,5 @@ if (NOT DISABLE_FTL_APP) endif() # Install rules -install(TARGETS ftl DESTINATION lib) \ No newline at end of file +install(TARGETS ftl DESTINATION + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) \ No newline at end of file