summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-10-10 20:05:26 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-10-10 20:05:26 +0200
commit07bdc95e0b5ebec3f03a3d69f0965873d6bc5725 (patch)
tree67d66e9eccf484b017142cabd24c8ca6b94735a0 /CMakeLists.txt
parentd02dfe785ff42840c916532ea8476bb8eb60eb85 (diff)
downloadlibcarddav-07bdc95e0b5ebec3f03a3d69f0965873d6bc5725.tar.gz
libcarddav-07bdc95e0b5ebec3f03a3d69f0965873d6bc5725.zip
cmake: Install libraries according to multi-arch rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c484bc..22bd1d4 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( )