diff options
author | Slávek Banko <[email protected]> | 2019-10-10 19:56:37 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-10-10 19:56:37 +0200 |
commit | f4d6e7129fec8081662f9708032e67ff245494d4 (patch) | |
tree | 438e71e86d2b79b807710d74f1f346d9481958a3 | |
parent | 139ed9ca98852d77a5987228e13f93a5055ce076 (diff) | |
download | libcaldav-f4d6e7129fec8081662f9708032e67ff245494d4.tar.gz libcaldav-f4d6e7129fec8081662f9708032e67ff245494d4.zip |
cmake: Install libraries according to multi-arch rules.
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | CMakeLists.txt | 5 |
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( ) |