Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 28 Nov 2017 10:37:22 +0100
Description: Support Multiarch

--- a/gatb-core/src/CMakeLists.txt
+++ b/gatb-core/src/CMakeLists.txt
@@ -2,6 +2,8 @@
 #  KMER SIZE DEFINITION 
 ################################################################################
 
+include(GNUInstallDirs)
+
 # We define the default values for kmer sizes.
 if (NOT KSIZE_DEFAULT_LIST) # only if the tool cmake didn't override it
     #list (APPEND KSIZE_DEFAULT_LIST  32   64)
@@ -95,8 +97,8 @@ set_target_properties (gatbcore-dynamic
 
 # We install the libraries
 IF (NOT DEFINED GATB_CORE_INSTALL_EXCLUDE)
-    install (TARGETS gatbcore-static DESTINATION lib)
-    install (TARGETS gatbcore-dynamic DESTINATION lib)
+    install (TARGETS gatbcore-static DESTINATION "${CMAKE_INSTALL_LIBDIR}")
+    install (TARGETS gatbcore-dynamic DESTINATION "${CMAKE_INSTALL_LIBDIR}")
     install (DIRECTORY ${PROJECT_SOURCE_DIR}/src/ DESTINATION include FILES_MATCHING PATTERN "*.hpp" PATTERN "*.tpp" PATTERN "*.pri" PATTERN "*.h")
     install (FILES ${PROJECT_BINARY_DIR}/include/gatb/system/api/config.hpp DESTINATION include/gatb/system/api/)
 ENDIF ()
