summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-10-10 19:56:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-10-11 14:33:28 +0200
commitc39aed380d14074d10bdeb9bd9b4496d27b1aab8 (patch)
tree46cdcac65d19337136eae2eb776f6e8ff0658799
parentb52d4c7d94e2a2ca1e76113310a342e64df04b7e (diff)
downloadlibcaldav-c39aed380d14074d10bdeb9bd9b4496d27b1aab8.tar.gz
libcaldav-c39aed380d14074d10bdeb9bd9b4496d27b1aab8.zip
cmake: Install libraries according to multi-arch rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit f4d6e7129fec8081662f9708032e67ff245494d4)
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4895c59..72449be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,6 +25,7 @@ include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckCSourceCompiles )
+include( GNUInstallDirs OPTIONAL )
#### include our cmake modules
@@ -35,6 +36,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( )