From a48a8c82405e858da7d2d28bb13d2cf94132da2f Mon Sep 17 00:00:00 2001
From: Slávek Banko <slavek.banko@axis.cz>
Date: Tue, 3 Feb 2026 03:42:26 +0100
Subject: Install libraries according to multi-arch rules.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 245c495..5cbb9a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,6 +32,7 @@ include( CheckSymbolExists      )
 include( CheckIncludeFile       )
 include( CheckLibraryExists     )
 include( CheckCSourceCompiles   )
+include( GNUInstallDirs OPTIONAL )
 
 
 #### include our cmake modules
@@ -41,6 +42,10 @@ include( TDEMacros )
 
 ##### setup install paths
 
+if( CMAKE_INSTALL_LIBDIR )
+  tde_setup_install_path( LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" )
+endif( )
+
 include( TDESetupPaths )
 tde_setup_paths( )
 enable_testing( )
-- 
cgit v1.2.3

